Skip to content

Commit 15df85e

Browse files
bvanasschemartinkpetersen
authored andcommitted
scsi: target: Compare explicitly with SAM_STAT_GOOD
Instead of leaving it implicit that SAM_STAT_GOOD == 0, compare explicitly with SAM_STAT_GOOD. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Mike Christie <[email protected]> Signed-off-by: Bart Van Assche <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 41e70e3 commit 15df85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/target_core_pscsi.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1046,7 +1046,7 @@ static void pscsi_req_done(struct request *req, blk_status_t status)
10461046
int result = scsi_req(req)->result;
10471047
u8 scsi_status = status_byte(result) << 1;
10481048

1049-
if (scsi_status) {
1049+
if (scsi_status != SAM_STAT_GOOD) {
10501050
pr_debug("PSCSI Status Byte exception at cmd: %p CDB:"
10511051
" 0x%02x Result: 0x%08x\n", cmd, pt->pscsi_cdb[0],
10521052
result);

0 commit comments

Comments
 (0)