X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fudev%2Fata_id%2Fata_id.c;h=488fed4ac413bc7b2df279df45a11cc33265a229;hp=fe160bf1ee574f52674c67226934ca50637f69ad;hb=1298001ec5e320f9f9b6a9b925c8939b2579396d;hpb=baa30fbc2c04b23209d0b8fb3c86cd15ef9ea81a diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c index fe160bf1e..488fed4ac 100644 --- a/src/udev/ata_id/ata_id.c +++ b/src/udev/ata_id/ata_id.c @@ -1,7 +1,7 @@ /* * ata_id - reads product/serial number from ATA drives * - * Copyright (C) 2005-2008 Kay Sievers + * Copyright (C) 2005-2008 Kay Sievers * Copyright (C) 2009 Lennart Poettering * Copyright (C) 2009-2010 David Zeuthen * @@ -360,7 +360,6 @@ static int disk_identify(struct udev *udev, int is_packet_device; /* init results */ - ret = -1; memset(out_identify, '\0', 512); is_packet_device = 0; @@ -505,7 +504,7 @@ int main(int argc, char *argv[]) * use and copy it into the hd_driveid struct for convenience */ disk_identify_fixup_string(identify, 10, 20); /* serial */ - disk_identify_fixup_string(identify, 23, 6); /* fwrev */ + disk_identify_fixup_string(identify, 23, 8); /* fwrev */ disk_identify_fixup_string(identify, 27, 40); /* model */ disk_identify_fixup_uint16(identify, 0); /* configuration */ disk_identify_fixup_uint16(identify, 75); /* queue depth */