dm cache: remove needless request_queue NULL pointer checks
PATCH 1/1 dm cache: remove needless request_queue NULL pointer checks
Since commit ff9ea323816d ("block, bdi: an active gendisk always has a request_queue associated with it") the request_queue pointer returned from bdev_get_queue() shall never be NULL.
Signed-off-by Xu Wang <[email protected]>
--- drivers/md/dm-cache-target.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/md/dm-cache-target.c +1 -1
@@ -3387,7 +3387,7 @@ static bool origin_dev_supports_discard(struct block_device *origin_bdev) {struct request_queue *q =bdev_get_queue (origin_bdev); -return q &&blk_queue_discard (q); +return blk_queue_discard (q); }/*
Signature · 1 line
2.17.1