]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: sd_zbc: Remove an assignment from sd_zbc_setup_report_cmnd()
authorBart Van Assche <bart.vanassche@wdc.com>
Thu, 28 Jun 2018 15:31:28 +0000 (08:31 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 2 Jul 2018 20:18:11 +0000 (16:18 -0400)
commitcf2a3239c36d600bd209ed9f010be2abd51c7d30
treed3ed63550b7bae7738b7e234dec8bb8eb65bba7f
parentac74da095b8ae1d48b59ac73bd29b54990f1e56a
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>
drivers/scsi/sd_zbc.c