The first patch removes a useless initialization of the number of zones of a zoned null_blk device. The following 2 patches rework the zone related inline helper functions in blkdev.h to simplify their definition, removing uneeded code. Damien Le Moal (3): null_blk: Do not set disk->nr_zones block: Define bdev_nr_zones() as an inline function block: Cleanup block device zone helpers block/blk-zoned.c | 18 ------------- drivers/block/null_blk/zoned.c | 2 -- include/linux/blkdev.h | 46 +++++++++++----------------------- 3 files changed, 15 insertions(+), 51 deletions(-) -- 2.45.2