summaryrefslogtreecommitdiff
path: root/drivers/scsi/advansys.c
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2021-04-27 10:30:36 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2021-05-31 22:48:23 -0400
commitfdabe57d126954fe4132ef271366dfd75b411224 (patch)
tree5fd92e37959cd32cfcf40d516c1d5a805ab77d65 /drivers/scsi/advansys.c
parentaec166fde7827643c8e049f20bc30ea61b14ea53 (diff)
scsi: aha152x: Do not set message byte when calling scsi_done()
The done() function is called with a host_byte indicating the actual error when the message byte is set. As the host byte takes precedence during error recovery we can drop setting the message byte if the host byte is set, too. The only other case is when the host byte is DID_OK, but in that case the message byte is always COMMAND_COMPLETE (i.e. 0), so we can drop it there, too. Link: https://lore.kernel.org/r/20210427083046.31620-31-hare@suse.de Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/advansys.c')
0 files changed, 0 insertions, 0 deletions