linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/3] fs: super: remove unneeded dev mask
@ 2016-07-26  5:33 Heiner Kallweit
  0 siblings, 0 replies; only message in thread
From: Heiner Kallweit @ 2016-07-26  5:33 UTC (permalink / raw)
  To: Alexander Viro; +Cc: linux-fsdevel

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 --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);
-- 
2.9.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-07-26  5:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-26  5:33 [PATCH 3/3] fs: super: remove unneeded dev mask Heiner Kallweit

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).