Thread (2 messages) 2 messages, 2 authors, 2021-07-11

Re: [PATCH] scsi: fas216: Fix a build error

flat view

From: Hannes Reinecke <hare@suse.de>
Date: 2021-07-11 12:07:44

On 7/11/21 5:36 AM, Bart Van Assche wrote:
quoted hunk ↗ jump to hunk
Use SAM_STAT_GOOD instead of GOOD since GOOD has been removed.

Cc: Hannes Reinecke <hare@suse.de>
Fixes: 3d45cefc8edd ("scsi: core: Drop obsolete Linux-specific SCSI status codes")
Fixes: df1303147649 ("scsi: fas216: Use get_status_byte() to avoid using Linux-specific status codes")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
---
  drivers/scsi/arm/fas216.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/arm/fas216.c b/drivers/scsi/arm/fas216.c
index 30ed3d23635a..6baa9b36367d 100644
--- a/drivers/scsi/arm/fas216.c
+++ b/drivers/scsi/arm/fas216.c
@@ -2010,7 +2010,7 @@ static void fas216_rq_sns_done(FAS216_Info *info, struct scsi_cmnd *SCpnt,
  		   "request sense complete, result=0x%04x%02x%02x",
  		   result, SCpnt->SCp.Message, SCpnt->SCp.Status);
  
-	if (result != DID_OK || SCpnt->SCp.Status != GOOD)
+	if (result != DID_OK || SCpnt->SCp.Status != SAM_STAT_GOOD)
  		/*
  		 * Something went wrong.  Make sure that we don't
  		 * have valid data in the sense buffer that could
Thanks for spotting this.

Reviewed-by: Hannes Reinecke <hare@suse.de>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke                Kernel Storage Architect
hare@suse.de                              +49 911 74053 688
SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help