]> Git Repo - linux.git/commit
blk-lib: don't check bdev_get_queue() NULL check
authorChaitanya Kulkarni <[email protected]>
Tue, 15 Feb 2022 11:52:47 +0000 (03:52 -0800)
committerJens Axboe <[email protected]>
Tue, 15 Feb 2022 14:51:46 +0000 (07:51 -0700)
commitec9fd2a13d743ae129bd1b5c6edea0d65260ce10
tree224894b15d00a5d87f4cfcd4a33d1e5aa689eeda
parent69591a402d18fd60c8c95b061279f17bf0b78129
blk-lib: don't check bdev_get_queue() NULL check

Based on the comment present in the bdev_get_queue()
bdev->bd_queue can never be NULL. Remove the NULL check for the local
variable q that is set from bdev_get_queue() for discard, write_same,
and write_zeroes.

Signed-off-by: Chaitanya Kulkarni <[email protected]>
Reviewed-by: Ming Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
block/blk-lib.c
This page took 0.046118 seconds and 4 git commands to generate.