summaryrefslogtreecommitdiff
path: root/block/ioctl.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-11-22 16:06:15 +0300
committerJens Axboe <axboe@kernel.dk>2021-11-29 16:35:21 +0300
commite3b3bad3f29878d13fdbc96f9e59674bd9b06bae (patch)
tree48f1c2301a1652d921668180f3f9062f3c0f7576 /block/ioctl.c
parent1a827ce1b9f2c740d2c6a228afd972970c18bc21 (diff)
downloadlinux-e3b3bad3f29878d13fdbc96f9e59674bd9b06bae.tar.xz
block: remove a dead check in show_partition
disk_max_parts never returns 0 given that ->minors for devices not using the extended dev_t must be non-zero, and disk_max_parts always returns DISK_MAX_PARTS for the latter. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20211122130625.1136848-5-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/ioctl.c')
0 files changed, 0 insertions, 0 deletions