Message ID | 20210824075216.1179406-2-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | [1/2] block: remove a pointless call to MINOR() in device_add_disk | expand |
diff --git a/block/genhd.c b/block/genhd.c index a4817e42f3a3..3ee031c97f22 100644 --- a/block/genhd.c +++ b/block/genhd.c @@ -515,7 +515,7 @@ static void __device_add_disk(struct device *parent, struct gendisk *disk, return; } disk->major = BLOCK_EXT_MAJOR; - disk->first_minor = MINOR(ret); + disk->first_minor = ret; disk->flags |= GENHD_FL_EXT_DEVT; }
blk_alloc_ext_minor already returns just a minor number, so no need to mask the high bits. Signed-off-by: Christoph Hellwig <hch@lst.de> --- block/genhd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)