lkml.org 
[lkml]   [2015]   [Sep]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 12/17] fs/ncpfs: remove unnecessary new_valid_dev check
    Date
    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/ncpfs/dir.c | 2 --
    1 file changed, 2 deletions(-)

    diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c
    index 93575e9..2d9891a 100644
    --- a/fs/ncpfs/dir.c
    +++ b/fs/ncpfs/dir.c
    @@ -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);
    --
    1.9.1



    \
     
     \ /
      Last update: 2015-09-28 16:41    [W:2.211 / U:0.076 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site