summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2018-06-25 16:49:38 -0700
committerMartin K. Petersen <martin.petersen@oracle.com>2018-06-26 12:34:43 -0400
commit2b33ab371e026cfcea4cbdf233c6b8776dde9ba8 (patch)
tree752f64dbabdc080c42590dddf7a1d418b87c3afc /drivers
parentc2cdef95160440ed6291bc343139d958ba3261e4 (diff)
downloadlinux-2b33ab371e026cfcea4cbdf233c6b8776dde9ba8.tar.bz2
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')
-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;