Skip to contentSkip to conversation

Remove compile warning from scsi/scsi.c

PATCH In review Bob Miller 2 participants 2 messages Nov 13, 2002 – Dec 2, 2002 SCSI

lore
Share & tools
lore

Bob Miller

author
#0 lore raw

PATCH 1/1 Remove compile warning from scsi/scsi.c

drivers/scsi/scsi.c +1 -1
diff -Nru a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c
@@ -1985,7 +1985,7 @@
 	up_read(&scsi_devicelist_mutex);
 	return 0;
 
-fail:
+/* XXX fail: */
 	printk(KERN_ERR "%s: Allocation failure during SCSI scanning, "
 			"some SCSI devices might not be configured\n",
 			__FUNCTION__);
Signature · 2 lines
Bob Miller					Email: [email protected]
Open Source Development Lab			Phone: 503.626.2455 Ext. 17
#1 lore raw

In message <[email protected]> you write:

drivers/scsi/scsi.c line 1991

Quoted 12 lines

diff -Nru a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c

drivers/scsi/scsi.c +1 -1
@@ -1985,7 +1985,7 @@
 	up_read(&scsi_devicelist_mutex);
 	return 0;
 
-fail:
+/* XXX fail: */
 	printk(KERN_ERR "%s: Allocation failure during SCSI scanning, "
 			"some SCSI devices might not be configured\n",
 			__FUNCTION__);

That code is now unreachable, which can't be right.

(Catching up on trivial),
Rusty.
--
Anyone who quotes me in their sig is an idiot. -- Rusty Russell.