projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2cdef9
)
scsi: sd: Remove a superfluous assignment
author
Bart Van Assche
<bart.vanassche@wdc.com>
Mon, 25 Jun 2018 23:49:38 +0000
(16:49 -0700)
committer
Martin K. Petersen
<martin.petersen@oracle.com>
Tue, 26 Jun 2018 16:34:43 +0000
(12:34 -0400)
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>
drivers/scsi/sd.c
patch
|
blob
|
history
diff --git
a/drivers/scsi/sd.c
b/drivers/scsi/sd.c
index 612aa14c1b265f27fb4d4397eae470c68fb3279a..a84f0923753a30e0e980def4b397bc3b36f01e97 100644
(file)
--- 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;