From: Yaowei Bai <bywxiaobai@163.com>
To: viro@zeniv.linux.org.uk, jack@suse.cz, akpm@linux-foundation.org,
osandov@osandov.com, keescook@chromium.org, fabf@skynet.be,
dhowells@redhat.com
Cc: reiserfs-devel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH 15/17] fs/reiserfs: remove unnecessary new_valid_dev check
Date: Mon, 28 Sep 2015 22:47:07 +0800 [thread overview]
Message-ID: <1443451627-5740-1-git-send-email-bywxiaobai@163.com> (raw)
In-Reply-To: <1443446807-4838-1-git-send-email-bywxiaobai@163.com>
As new_valid_dev always returns 1, so !new_valid_dev check is not
needed, remove it.
Signed-off-by: Yaowei Bai <bywxiaobai@163.com>
---
fs/reiserfs/namei.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c
index 5f1c9c2..47f9698 100644
--- a/fs/reiserfs/namei.c
+++ b/fs/reiserfs/namei.c
@@ -712,9 +712,6 @@ static int reiserfs_mknod(struct inode *dir, struct dentry *dentry, umode_t mode
2 * (REISERFS_QUOTA_INIT_BLOCKS(dir->i_sb) +
REISERFS_QUOTA_TRANS_BLOCKS(dir->i_sb));
- if (!new_valid_dev(rdev))
- return -EINVAL;
-
retval = dquot_initialize(dir);
if (retval)
return retval;
--
1.9.1
parent reply other threads:[~2015-09-28 14:47 UTC|newest]
Thread overview: expand[flat|nested] mbox.gz Atom feed
[parent not found: <1443446807-4838-1-git-send-email-bywxiaobai@163.com>]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1443451627-5740-1-git-send-email-bywxiaobai@163.com \
--to=bywxiaobai@163.com \
--cc=akpm@linux-foundation.org \
--cc=dhowells@redhat.com \
--cc=fabf@skynet.be \
--cc=jack@suse.cz \
--cc=keescook@chromium.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=osandov@osandov.com \
--cc=reiserfs-devel@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).