Skip to content

Commit

Permalink
scsi: qla4xxx: Use standard SAM status definitions
Browse files Browse the repository at this point in the history
Use standard SAM status definitions and drop the driver-defined ones.

Link: https://lore.kernel.org/r/20210113090500.129644-14-hare@suse.de
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Hannes Reinecke authored and Martin K. Petersen committed Jan 23, 2021
1 parent f554758 commit 35f1cad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion drivers/scsi/qla4xxx/ql4_fw.h
Original file line number Diff line number Diff line change
Expand Up @@ -1181,7 +1181,6 @@ struct status_entry {
uint32_t handle; /* 04-07 */

uint8_t scsiStatus; /* 08 */
#define SCSI_CHECK_CONDITION 0x02

uint8_t iscsiFlags; /* 09 */
#define ISCSI_FLAG_RESIDUAL_UNDER 0x02
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/qla4xxx/ql4_isr.c
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ static void qla4xxx_status_entry(struct scsi_qla_host *ha,

cmd->result = DID_OK << 16 | scsi_status;

if (scsi_status != SCSI_CHECK_CONDITION)
if (scsi_status != SAM_STAT_CHECK_CONDITION)
break;

/* Copy Sense Data into sense buffer. */
Expand Down

0 comments on commit 35f1cad

Please sign in to comment.