]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[SCSI] qla1280 bus reset typo
authorJes Sorensen <jes@sgi.com>
Mon, 22 Jan 2007 19:21:31 +0000 (20:21 +0100)
committerAdrian Bunk <bunk@stusta.de>
Mon, 22 Jan 2007 20:41:22 +0000 (21:41 +0100)
Fix typo in check of return value of qla1280_bus_reset() which would
result in an adapter reset in addition to the bus reset.

Signed-off-by: Jes Sorensen <jes@sgi.com>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
drivers/scsi/qla1280.c

index d798c7d48b97aae38ca5f9b7bb70789024a8fcb2..6a229f16cb5f4b045136373a87545719e4f74b6b 100644 (file)
@@ -955,11 +955,10 @@ qla1280_error_action(struct scsi_cmnd *cmd, enum action action)
 
        case BUS_RESET:
                if (qla1280_verbose)
-                       printk(KERN_INFO "qla1280(%ld:%d): Issuing BUS "
-                              "DEVICE RESET\n", ha->host_no, bus);
-               if (qla1280_bus_reset(ha, bus == 0))
+                       printk(KERN_INFO "qla1280(%ld:%d): Issued bus "
+                              "reset.\n", ha->host_no, bus);
+               if (qla1280_bus_reset(ha, bus) == 0)
                        result = SUCCESS;
-
                break;
 
        case ADAPTER_RESET: