Re: [PATCH V2 1/1] blk-lib: don't check bdev_get_queue() NULL check

Ming Lei
2022-02-15T12:02:40Z

On Tue, Feb 15, 2022 at 03:52:47AM -0800, Chaitanya Kulkarni wrote:
> 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>

Looks fine,

Reviewed-by: Ming Lei <ming.lei@redhat.com>

--
Ming