diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-02-08 13:25:03 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-02-12 11:13:41 -0500 |
commit | 9fa505adf9f2914637e4e81620f62dcdaa575f71 (patch) | |
tree | 6fd5629d85871c75e33aa496da94d1dc62392d74 /drivers/scsi/scsi_lib.c | |
parent | 80f82c169b68b2dcd5adfc4625edd93a2ab954cf (diff) | |
download | linux-9fa505adf9f2914637e4e81620f62dcdaa575f71.tar.gz linux-9fa505adf9f2914637e4e81620f62dcdaa575f71.tar.bz2 linux-9fa505adf9f2914637e4e81620f62dcdaa575f71.zip |
scsi: core: Move resid from scsi_data_buffer to scsi_cmnd
This patch does not change any functionality but reduces the size of
struct scsi_cmnd.
Cc: Douglas Gilbert <dgilbert@interlog.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/scsi_lib.c')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index d25101c5e3b8..c77cb0d31dbc 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -938,7 +938,6 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) * scsi_result_to_blk_status may have reset the host_byte */ scsi_req(req)->result = cmd->result; - scsi_req(req)->resid_len = scsi_get_resid(cmd); } /* |