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 5db44863b6 ("[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>
This commit is contained in:
Bart Van Assche 2018-06-25 16:49:38 -07:00 committed by Martin K. Petersen
parent c2cdef9516
commit 2b33ab371e

View File

@ -2028,7 +2028,6 @@ static int sd_done(struct scsi_cmnd *SCpnt)
} else { } else {
sdkp->device->no_write_same = 1; sdkp->device->no_write_same = 1;
sd_config_write_same(sdkp); sd_config_write_same(sdkp);
req->__data_len = blk_rq_bytes(req);
req->rq_flags |= RQF_QUIET; req->rq_flags |= RQF_QUIET;
} }
break; break;