mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
fs/ncpfs/dir.c: remove unnecessary new_valid_dev() check
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: Petr Vandrovec <[email protected]> Cc: Jan Kara <[email protected]> Cc: Jens Axboe <[email protected]> Cc: Tejun Heo <[email protected]> Cc: Fabian Frederick <[email protected]> Cc: David Howells <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
a2a1704409
commit
4467e29f0c
1 changed files with 0 additions and 2 deletions
|
|
@ -1165,8 +1165,6 @@ out:
|
|||
static int ncp_mknod(struct inode * dir, struct dentry *dentry,
|
||||
umode_t mode, dev_t rdev)
|
||||
{
|
||||
if (!new_valid_dev(rdev))
|
||||
return -EINVAL;
|
||||
if (ncp_is_nfs_extras(NCP_SERVER(dir), NCP_FINFO(dir)->volNumber)) {
|
||||
ncp_dbg(1, "mode = 0%ho\n", mode);
|
||||
return ncp_create_new(dir, dentry, mode, rdev, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue