aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2021-08-24 09:52:15 +0200
committerJens Axboe <[email protected]>2021-08-24 06:42:32 -0600
commit539711d7d6fe382a73254cc966602e63242a6fb3 (patch)
tree44bcc20baddc4b30bc40bcaf20f15088b1fc6f5f
parent10e7123d5551dec0025f70e61604ab57483a6ed2 (diff)
block: remove a pointless call to MINOR() in device_add_disk
blk_alloc_ext_minor already returns just a minor number, so no need to mask the high bits. Signed-off-by: Christoph Hellwig <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
-rw-r--r--block/genhd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/block/genhd.c b/block/genhd.c
index a925f773145f..f13b7eb0238b 100644
--- a/block/genhd.c
+++ b/block/genhd.c
@@ -457,7 +457,7 @@ int device_add_disk(struct device *parent, struct gendisk *disk,
if (ret < 0)
return ret;
disk->major = BLOCK_EXT_MAJOR;
- disk->first_minor = MINOR(ret);
+ disk->first_minor = ret;
disk->flags |= GENHD_FL_EXT_DEVT;
}