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
This commit is contained in:
marcel 2006-03-30 05:29:57 +00:00
parent c52b7e783b
commit 819c015bdb

View File

@ -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);