diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2021-03-19 08:11:13 +0000 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2021-03-26 14:53:42 -0400 |
commit | 695902bb2e17baf10a5a312ef048b71f738ddbe8 (patch) | |
tree | 9b7b6c57b68625d9d23852041bd62dca05ed998d | |
parent | e30de3a803448c65433d49847f5db23a221c3ee1 (diff) | |
download | linux-695902bb2e17baf10a5a312ef048b71f738ddbe8.tar.bz2 |
dm thin: remove needless request_queue NULL pointer check
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 <vulab@iscas.ac.cn>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
-rw-r--r-- | drivers/md/dm-thin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index fff4c50df74d..985baee3a678 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -2816,7 +2816,7 @@ static bool data_dev_supports_discard(struct pool_c *pt) { struct request_queue *q = bdev_get_queue(pt->data_dev->bdev); - return q && blk_queue_discard(q); + return blk_queue_discard(q); } static bool is_factor(sector_t block_size, uint32_t n) |