scsi: aic7xxx: Fix error code handling
authorTong Zhang <ztong0001@gmail.com>
Sun, 16 Aug 2020 07:02:42 +0000 (03:02 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 25 Aug 2020 03:13:27 +0000 (23:13 -0400)
commit715f43c66c45381ba885279ed393890a117e1b45
tree30014f3ae09444e0d8c7e9b9004ec0642cd5ee75
parenta9b83986fd6e4834f99f883bbb5b7cb5186f5f5d
scsi: aic7xxx: Fix error code handling

ahc_linux_queue_recovery_cmd returns SUCCESS(0x2002) or FAIL(0x2003), but
the caller is checking error case using != 0.

Link: https://lore.kernel.org/r/20200816070242.978839-1-ztong0001@gmail.com
Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aic7xxx/aic7xxx_osm.c