Skip to content

Commit

Permalink
fs/f2fs/namei.c: remove unnecessary new_valid_dev() check
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
baihuahua authored and torvalds committed Nov 9, 2015
1 parent d7df000 commit a8415e4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/f2fs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a8415e4

Please sign in to comment.