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 Moolenaar 2006-03-30 05:29:57 +00:00
parent 4c6aab055d
commit 0f0d108e27
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=157283

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