dm cache: remove needless request_queue NULL pointer checks

Since commit ff9ea32381 ("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 <vulab@iscas.ac.cn>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
Xu Wang 2021-03-19 08:16:28 +00:00 committed by Mike Snitzer
parent 695902bb2e
commit 63508e38c1
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
/*