Skip to content
Commit 731e208d authored by Ziyang Zhang's avatar Ziyang Zhang Committed by Jens Axboe
Browse files

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: default avatarZiyang Zhang <ZiyangZhang@linux.alibaba.com>
Reviewed-by: default avatarMing Lei <ming.lei@redhat.com>
Link: https://lore.kernel.org/r/20230207070839.370817-2-ZiyangZhang@linux.alibaba.com
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 83e8864f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment