diff options
author | Hannes Reinecke <hare@suse.de> | 2021-04-27 10:30:43 +0200 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-05-31 22:48:24 -0400 |
commit | 54cf31d07aa859e142c527f04eefa254659e1af2 (patch) | |
tree | e8d2865a8913b30e0671917056acde846ceae97c /block | |
parent | 0ee44f900e419efe00a72880256ef9c71cf60225 (diff) | |
download | linux-54cf31d07aa859e142c527f04eefa254659e1af2.tar.gz linux-54cf31d07aa859e142c527f04eefa254659e1af2.tar.bz2 linux-54cf31d07aa859e142c527f04eefa254659e1af2.zip |
scsi: core: Drop message byte helper
The message byte is now unused, so we can drop the helper to set the
message byte and the check for message bytes during error recovery.
Link: https://lore.kernel.org/r/20210427083046.31620-38-hare@suse.de
Reviewed-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'block')
-rw-r--r-- | block/scsi_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/scsi_ioctl.c b/block/scsi_ioctl.c index 3a9c071b3799..fa6df11b8bdd 100644 --- a/block/scsi_ioctl.c +++ b/block/scsi_ioctl.c @@ -254,7 +254,7 @@ static int blk_complete_sghdr_rq(struct request *rq, struct sg_io_hdr *hdr, */ hdr->status = req->result & 0xff; hdr->masked_status = status_byte(req->result); - hdr->msg_status = msg_byte(req->result); + hdr->msg_status = COMMAND_COMPLETE; hdr->host_status = host_byte(req->result); hdr->driver_status = 0; if (scsi_status_is_check_condition(hdr->status)) |