mirror of https://gitee.com/openkylin/linux.git
scsi: mac53c94: Do not set invalid command result
CMD_ACCEPT_MSG is an internal definition and most certainly not a SCSI status. As the latter gets set during command completion we can drop the assignment here. Link: https://lore.kernel.org/r/20210113090500.129644-26-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>
This commit is contained in:
parent
f3272258d7
commit
ddb99b1d1d
|
@ -326,7 +326,6 @@ static void mac53c94_interrupt(int irq, void *dev_id)
|
|||
}
|
||||
cmd->SCp.Status = readb(®s->fifo);
|
||||
cmd->SCp.Message = readb(®s->fifo);
|
||||
cmd->result = CMD_ACCEPT_MSG;
|
||||
writeb(CMD_ACCEPT_MSG, ®s->command);
|
||||
state->phase = busfreeing;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue