diff options
author | Bart Van Assche <bart.vanassche@wdc.com> | 2018-06-28 08:31:28 -0700 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2018-07-02 16:18:11 -0400 |
commit | 68c3f904ed4591797ccac22148b95c54af391f30 (patch) | |
tree | d3ed63550b7bae7738b7e234dec8bb8eb65bba7f /lib/klist.c | |
parent | 915d9b71422126076f1971f1a44561ae76890060 (diff) | |
download | linux-stable-68c3f904ed4591797ccac22148b95c54af391f30.tar.gz linux-stable-68c3f904ed4591797ccac22148b95c54af391f30.tar.bz2 linux-stable-68c3f904ed4591797ccac22148b95c54af391f30.zip |
scsi: sd_zbc: Remove an assignment from sd_zbc_setup_report_cmnd()
Since nr_bytes == blk_rq_bytes(rq) == rq->__data_len, the
rq->__data_len = nr_bytes assignment does not modify the value of
rq->__data_len. Hence remove that assignment. Note: the code in
sd_done() that sets the residual to zero for zone report requests
is not affected by this patch.
Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: Hannes Reinecke <hare@suse.com>
Cc: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'lib/klist.c')
0 files changed, 0 insertions, 0 deletions