block: null_blk: cleanup null_queue_rq()
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 14 Mar 2023 04:11:06 +0000 (13:11 +0900)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Mar 2023 12:50:24 +0000 (06:50 -0600)
commitb6402014cab0481bdfd1ffff3e1dad714e8e1205
tree9874bd2a5b5429c4ed74a26c6a34848577c6880d
parent63f886597085f346276e3b3c8974de0100d65f32
block: null_blk: cleanup null_queue_rq()

Use a local struct request pointer variable to avoid having to
dereference struct blk_mq_queue_data multiple times. While at it, also
fix the function argument indentation and remove a useless "else" after
a return.

Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Pankaj Raghav <p.raghav@samsung.com>
Link: https://lore.kernel.org/r/20230314041106.19173-2-damien.lemoal@opensource.wdc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/null_blk/main.c