Skip to content
Commit bca1c43c authored by Jens Axboe's avatar Jens Axboe
Browse files

null_blk: remove unused variable warning on !CONFIG_BLK_DEV_ZONED

If BLK_DEV_ZONED isn't set, 'ret' isn't used. This makes gcc complain,
rightfully. Move ret where it is used.

Fixes: 979d5447

 ("null_blk: cleanup null_gendisk_register")
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent f1acbf21
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