Skip to content

Commit

Permalink
fs/exofs/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]>
Acked-by: Boaz Harrosh <[email protected]>
Cc: Benny Halevy <[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 7cac0a8 commit 5738939
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions fs/exofs/namei.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ static int exofs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode,
struct inode *inode;
int err;

if (!new_valid_dev(rdev))
return -EINVAL;

inode = exofs_new_inode(dir, mode);
err = PTR_ERR(inode);
if (!IS_ERR(inode)) {
Expand Down

0 comments on commit 5738939

Please sign in to comment.