projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e7123
)
block: remove a pointless call to MINOR() in device_add_disk
author
Christoph Hellwig
<hch@lst.de>
Tue, 24 Aug 2021 07:52:15 +0000
(09:52 +0200)
committer
Jens Axboe
<axboe@kernel.dk>
Tue, 24 Aug 2021 12:42:32 +0000
(06:42 -0600)
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>
Link:
https://lore.kernel.org/r/20210824075216.1179406-2-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/genhd.c
patch
|
blob
|
history
diff --git
a/block/genhd.c
b/block/genhd.c
index
a925f77
..
f13b7eb
100644
(file)
--- 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;
}