ublk: remove unnecessary NULL check in ublk_rq_has_data()
authorZiyang Zhang <ZiyangZhang@linux.alibaba.com>
Tue, 7 Feb 2023 07:08:37 +0000 (15:08 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Feb 2023 14:21:31 +0000 (07:21 -0700)
commit731e208d7b4b38d2bac4b7c53403c8abbf306d01
treec2ab7da175883ffa10d3eaacb820a8400d5f4e70
parent83e8864fee26f63a7435e941b7c36a20fd6fe93e
ublk: remove unnecessary NULL check in ublk_rq_has_data()

bio_has_data() allows a NULL bio so the NULL check in
ublk_rq_has_data() is unnecessary.

Signed-off-by: Ziyang Zhang <ZiyangZhang@linux.alibaba.com>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230207070839.370817-2-ZiyangZhang@linux.alibaba.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/ublk_drv.c