Commit 55d2f9bb authored by Matthew Dharm's avatar Matthew Dharm Committed by Greg Kroah-Hartman

[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()
parent 82469dfd
......@@ -912,7 +912,7 @@ static int storage_probe(struct usb_interface *intf,
/* 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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment