summaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2021-03-19 09:16:28 +0100
committerMike Snitzer <snitzer@redhat.com>2021-03-26 19:53:42 +0100
commit63508e38c1081c96abb315df1fd1acb77befa42f (patch)
treeec1028defc8a945310241bd4b19797aacd66c029 /drivers/md
parentdm thin: remove needless request_queue NULL pointer check (diff)
downloadlinux-63508e38c1081c96abb315df1fd1acb77befa42f.tar.xz
linux-63508e38c1081c96abb315df1fd1acb77befa42f.zip
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 <vulab@iscas.ac.cn> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-cache-target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-cache-target.c b/drivers/md/dm-cache-target.c
index 541c45027cc8..6ab01ff25747 100644
--- a/drivers/md/dm-cache-target.c
+++ b/drivers/md/dm-cache-target.c
@@ -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);
}
/*