Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b804049d authored by Stanley Chu's avatar Stanley Chu Committed by Jens Axboe
Browse files

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: default avatarStanley Chu <stanley.chu@mediatek.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 8a15b4d7
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -94,7 +94,6 @@ 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);
		}
	}