block: ublk_drv: clean up several helpers
authorMing Lei <ming.lei@redhat.com>
Thu, 30 Mar 2023 11:36:23 +0000 (19:36 +0800)
committerJens Axboe <axboe@kernel.dk>
Mon, 3 Apr 2023 01:22:55 +0000 (19:22 -0600)
commit96cf2f5404c8bc979628a2b495852d735a56c5b5
treedd590971ee3fc58fbb44f7b606bb57c81e016ae8
parent2f3af723447c35c16f3c6a1b4b317c61dc41d6c3
block: ublk_drv: clean up several helpers

Convert the following pattern in several helpers
if (Z)
return true
return false
into:
return Z;

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