]> git.baikalelectronics.ru Git - kernel.git/commit
blk-lib: don't check bdev_get_queue() NULL check
authorChaitanya Kulkarni <kch@nvidia.com>
Tue, 15 Feb 2022 11:52:47 +0000 (03:52 -0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 15 Feb 2022 14:51:46 +0000 (07:51 -0700)
commit2b9310aa17691e27d886820ce04bf9d36022a82e
tree224894b15d00a5d87f4cfcd4a33d1e5aa689eeda
parent298a57860733a2c7d1afdc3697a4404a2ed07279
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 <kch@nvidia.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20220215115247.11717-2-kch@nvidia.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-lib.c