[SCSI] Unify SAM_ and SAM_STAT_ macros
We have two separate definitions for identical constants with nearly the same name. One comes from the generic headers in scsi.h; the other is an enum in libsas.h ... it's causing confusion about which one is correct (fortunately they both are). Fix this by eliminating the libsas.h duplicate Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
@@ -113,10 +113,10 @@ static void sas_scsi_task_done(struct sas_task *task)
|
||||
case SAS_ABORTED_TASK:
|
||||
hs = DID_ABORT;
|
||||
break;
|
||||
case SAM_CHECK_COND:
|
||||
case SAM_STAT_CHECK_CONDITION:
|
||||
memcpy(sc->sense_buffer, ts->buf,
|
||||
min(SCSI_SENSE_BUFFERSIZE, ts->buf_valid_size));
|
||||
stat = SAM_CHECK_COND;
|
||||
stat = SAM_STAT_CHECK_CONDITION;
|
||||
break;
|
||||
default:
|
||||
stat = ts->stat;
|
||||
|
Reference in New Issue
Block a user