summaryrefslogtreecommitdiff
path: root/drivers/scsi
diff options
context:
space:
mode:
authorStanley Chu <stanley.chu@mediatek.com>2019-09-12 11:35:28 +0300
committerJens Axboe <axboe@kernel.dk>2019-09-12 16:11:58 +0300
commitb804049dce9128a88558bc1594ff96d6632fbc10 (patch)
tree7dd17f07db285da0e6ffd6be4f95e41a5c88b8e9 /drivers/scsi
parent8a15b4d7cd872b784f585d38d9240f6ee588381b (diff)
downloadlinux-b804049dce9128a88558bc1594ff96d6632fbc10.tar.xz
scsi: core: remove dummy q->dev check
Currently blk_set_runtime_active() is checking if q->dev is null by itself, thus remove the same checking in its user: scsi_dev_type_resume(). Signed-off-by: Stanley Chu <stanley.chu@mediatek.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/scsi_pm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_pm.c b/drivers/scsi/scsi_pm.c
index 74ded5f3c236..3717eea37ecb 100644
--- a/drivers/scsi/scsi_pm.c
+++ b/drivers/scsi/scsi_pm.c
@@ -94,8 +94,7 @@ static int scsi_dev_type_resume(struct device *dev,
if (!err && scsi_is_sdev_device(dev)) {
struct scsi_device *sdev = to_scsi_device(dev);
- if (sdev->request_queue->dev)
- blk_set_runtime_active(sdev->request_queue);
+ blk_set_runtime_active(sdev->request_queue);
}
}