ChangeSet 1.979, 2003/02/04 10:52:56+11:00, [EMAIL PROTECTED]

[PATCH] usb-storage: fix typo

This patch goes on top of the last one.  It fixes a typo in the test for
scsi_register() failure.

  -- reversed the logic of failure test for scsi_register()


diff -Nru a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
--- a/drivers/usb/storage/usb.c Tue Feb  4 15:17:03 2003
+++ b/drivers/usb/storage/usb.c Tue Feb  4 15:17:03 2003
@@ -912,7 +912,7 @@
 
        /* now register */
        ss->host = scsi_register(&usb_stor_host_template, sizeof(ss));
-       if (ss->host) {
+       if (!ss->host) {
                printk(KERN_WARNING USB_STORAGE
                        "Unable to register the scsi host\n");
 



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to