chiark / gitweb /
use the same email address everywhere
[elogind.git] / src / udev / ata_id / ata_id.c
index fe160bf1ee574f52674c67226934ca50637f69ad..488fed4ac413bc7b2df279df45a11cc33265a229 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * ata_id - reads product/serial number from ATA drives
  *
- * Copyright (C) 2005-2008 Kay Sievers <kay.sievers@vrfy.org>
+ * Copyright (C) 2005-2008 Kay Sievers <kay@vrfy.org>
  * Copyright (C) 2009 Lennart Poettering <lennart@poettering.net>
  * Copyright (C) 2009-2010 David Zeuthen <zeuthen@gmail.com>
  *
@@ -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 */