Commit 3f1bfd94 authored by Yaowei Bai's avatar Yaowei Bai Committed by Linus Torvalds

include/linux/kdev_t.h: remove new_valid_dev()

As all new_valid_dev() checks have been removed it's time to drop
new_valid_dev() itself.

No functional change.
Signed-off-by: default avatarYaowei Bai <baiyaowei@cmss.chinamobile.com>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 4c416f42
...@@ -35,11 +35,6 @@ static inline dev_t old_decode_dev(u16 val) ...@@ -35,11 +35,6 @@ static inline dev_t old_decode_dev(u16 val)
return MKDEV((val >> 8) & 255, val & 255); return MKDEV((val >> 8) & 255, val & 255);
} }
static inline bool new_valid_dev(dev_t dev)
{
return 1;
}
static inline u32 new_encode_dev(dev_t dev) static inline u32 new_encode_dev(dev_t dev)
{ {
unsigned major = MAJOR(dev); unsigned major = MAJOR(dev);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment