[PATCH] Proper initialization of rc in drivers/ide/ide-probe.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello to all , In existing code, rc might remain uninitialized. This
patch initializes rc properly.

Signed-off-by: Md.Rakib Hassan Mullick ( rakib.mullick@xxxxxxxxx)

--- drivers/ide/ide-probe.c.orig	2008-07-25 23:33:22.000000000 +0600
+++ drivers/ide/ide-probe.c	2008-07-25 23:35:00.000000000 +0600
@@ -1437,7 +1437,7 @@ static struct device_attribute *ide_port

 static int ide_sysfs_register_port(ide_hwif_t *hwif)
 {
-	int i, rc;
+	int i, rc = 0;

 	for (i = 0; ide_port_attrs[i]; i++) {
 		rc = device_create_file(hwif->portdev, ide_port_attrs[i]);
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux