Skip to content

Commit

Permalink
[SCSI] qla1280 bus reset typo
Browse files Browse the repository at this point in the history
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: James Bottomley <James.Bottomley@SteelEye.com>
  • Loading branch information
Jes Sorensen authored and James Bottomley committed Oct 25, 2006
1 parent b5072ea commit cd00b7f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/scsi/qla1280.c
Original file line number Diff line number Diff line change
Expand Up @@ -931,11 +931,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:
Expand Down

0 comments on commit cd00b7f

Please sign in to comment.