summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcel <marcel@FreeBSD.org>2006-03-30 05:29:57 +0000
committermarcel <marcel@FreeBSD.org>2006-03-30 05:29:57 +0000
commit819c015bdb6d1470486ee4e508d0bbdb1ba5ab62 (patch)
tree039892231f03931be2d4efb4307719930fd66b69
parentc52b7e783bf840d1b0f126c08d6200b7b19036f1 (diff)
downloadFreeBSD-src-819c015bdb6d1470486ee4e508d0bbdb1ba5ab62.zip
FreeBSD-src-819c015bdb6d1470486ee4e508d0bbdb1ba5ab62.tar.gz
In afd_describe(), don't initialize sizestring. On ia64, gcc(1) will
generate code that calls memset, which we don't have in the kernel. MFC after: 3 days
-rw-r--r--sys/dev/ata/atapi-fd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/ata/atapi-fd.c b/sys/dev/ata/atapi-fd.c
index 11b20e6..5d839d3 100644
--- a/sys/dev/ata/atapi-fd.c
+++ b/sys/dev/ata/atapi-fd.c
@@ -398,7 +398,7 @@ afd_describe(device_t dev)
struct ata_channel *ch = device_get_softc(device_get_parent(dev));
struct ata_device *atadev = device_get_softc(dev);
struct afd_softc *fdp = device_get_ivars(dev);
- char sizestring[16] = "";
+ char sizestring[16];
if (fdp->mediasize > 1048576 * 5)
sprintf(sizestring, "%juMB", fdp->mediasize / 1048576);
OpenPOWER on IntegriCloud