fs/f2fs/namei.c: remove unnecessary new_valid_dev() check
authorYaowei Bai <[email protected]>
Mon, 9 Nov 2015 22:58:42 +0000 (14:58 -0800)
committerLinus Torvalds <[email protected]>
Mon, 9 Nov 2015 23:11:24 +0000 (15:11 -0800)
new_valid_dev() always returns 1, so the !new_valid_dev() check is not
needed.  Remove it.

Signed-off-by: Yaowei Bai <[email protected]>
Cc: Alexander Viro <[email protected]>
Cc: Jaegeuk Kim <[email protected]>
Cc: Changman Lee <[email protected]>
Cc: Chao Yu <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/f2fs/namei.c

index e48b80c490905ac500958b9f7b0a74de38dc8463..2c32110f9fc082408b318cac2142602ab7888a9e 100644 (file)
@@ -481,9 +481,6 @@ static int f2fs_mknod(struct inode *dir, struct dentry *dentry,
        struct inode *inode;
        int err = 0;
 
-       if (!new_valid_dev(rdev))
-               return -EINVAL;
-
        f2fs_balance_fs(sbi);
 
        inode = f2fs_new_inode(dir, mode);