[infiniband] remove pointless assignments
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 4 Sep 2014 23:29:32 +0000 (19:29 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Thu, 9 Oct 2014 06:39:15 +0000 (02:39 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/infiniband/hw/ipath/ipath_fs.c
drivers/infiniband/hw/qib/qib_fs.c

index e0c404b..4977082 100644 (file)
@@ -82,7 +82,6 @@ static int create_file(const char *name, umode_t mode,
 {
        int error;
 
-       *dentry = NULL;
        mutex_lock(&parent->d_inode->i_mutex);
        *dentry = lookup_one_len(name, parent, strlen(name));
        if (!IS_ERR(*dentry))
index cab610c..8185458 100644 (file)
@@ -89,7 +89,6 @@ static int create_file(const char *name, umode_t mode,
 {
        int error;
 
-       *dentry = NULL;
        mutex_lock(&parent->d_inode->i_mutex);
        *dentry = lookup_one_len(name, parent, strlen(name));
        if (!IS_ERR(*dentry))