diff mbox

[3/3] fs: super: remove unneeded dev mask

Message ID cfbd290a-2804-6d4c-1efc-ff700c898ed5@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Heiner Kallweit July 26, 2016, 5:33 a.m. UTC
dev is always less than (1 << MINORBITS), therefore we don't need
this masking.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
---
 fs/super.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/fs/super.c b/fs/super.c
index 37de8f5..583a541 100644
--- a/fs/super.c
+++ b/fs/super.c
@@ -894,7 +894,7 @@  int get_anon_bdev(dev_t *p)
 	else if (dev < 0)
 		return dev;
 
-	*p = MKDEV(0, dev & MINORMASK);
+	*p = MKDEV(0, dev);
 	return 0;
 }
 EXPORT_SYMBOL(get_anon_bdev);