diff options
author | Christoph Hellwig <hch@lst.de> | 2017-01-31 16:57:23 +0100 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-01-31 14:00:04 -0700 |
commit | 68b568c797c0a93bd1f2e107a6022350d096154e (patch) | |
tree | 6d8e2c4c8147d8b9ba579f5be6f2e2a54e84fde0 /drivers | |
parent | 1dd128a1ff1eb75ab45c62d9438acdcf5558d3b7 (diff) | |
download | linux-stable-68b568c797c0a93bd1f2e107a6022350d096154e.tar.gz linux-stable-68b568c797c0a93bd1f2e107a6022350d096154e.tar.bz2 linux-stable-68b568c797c0a93bd1f2e107a6022350d096154e.zip |
ѕd: remove pointless REQ_TYPE_FS check
->done can only be called for fs requests, so no need to check again here.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/sd.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index c779986edb43..bd2fb4d52efa 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -1735,9 +1735,6 @@ static unsigned int sd_completed_bytes(struct scsi_cmnd *scmd) unsigned int transferred = scsi_bufflen(scmd) - scsi_get_resid(scmd); unsigned int good_bytes; - if (scmd->request->cmd_type != REQ_TYPE_FS) - return 0; - info_valid = scsi_get_sense_info_fld(scmd->sense_buffer, SCSI_SENSE_BUFFERSIZE, &bad_lba); |