[PATCH 048/117] fdomain: Convert to the scsi_status union

Bart Van Assche
2021-04-20T00:10:00Z

drivers/scsi/fdomain.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/fdomain.c b/drivers/scsi/fdomain.c
index 772bdc93930a..a985a15588dc 100644
--- a/drivers/scsi/fdomain.c
+++ b/drivers/scsi/fdomain.c
@@ -206,7 +206,7 @@ static void fdomain_finish_cmd(struct fdomain *fd, int result)
{
outb(0, fd->base + REG_ICTL);
fdomain_make_bus_idle(fd);
- fd->cur_cmd->result = result;
+ fd->cur_cmd->status.combined = result;
fd->cur_cmd->scsi_done(fd->cur_cmd);
fd->cur_cmd = NULL;
}
@@ -439,7 +439,7 @@ static int fdomain_abort(struct scsi_cmnd *cmd)

fdomain_make_bus_idle(fd);
fd->cur_cmd->SCp.phase |= aborted;
- fd->cur_cmd->result = DID_ABORT << 16;
+ fd->cur_cmd->status.combined = DID_ABORT << 16;

/* Aborts are not done well. . . */
fdomain_finish_cmd(fd, DID_ABORT << 16);