summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-06-26 01:49:38 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2018-06-26 18:34:43 +0200
commit2b33ab371e026cfcea4cbdf233c6b8776dde9ba8 (patch)
tree752f64dbabdc080c42590dddf7a1d418b87c3afc /drivers/scsi
parentscsi: qedi: Fix misleading indentation (diff)
downloadlinux-2b33ab371e026cfcea4cbdf233c6b8776dde9ba8.tar.xz
linux-2b33ab371e026cfcea4cbdf233c6b8776dde9ba8.zip
scsi: sd: Remove a superfluous assignment
Since blk_rq_bytes(req) returns req->__data_len, assigning that value to req->__data_len is superfluous. Hence remove that assignment. See also commit 5db44863b6eb ("[SCSI] sd: Implement support for WRITE SAME"). Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/sd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c
index 612aa14c1b26..a84f0923753a 100644
--- a/drivers/scsi/sd.c
+++ b/drivers/scsi/sd.c
@@ -2028,7 +2028,6 @@ static int sd_done(struct scsi_cmnd *SCpnt)
} else {
sdkp->device->no_write_same = 1;
sd_config_write_same(sdkp);
- req->__data_len = blk_rq_bytes(req);
req->rq_flags |= RQF_QUIET;
}
break;