[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 e0c404bdc4a8333d60cef68189e8d2513d7ccc1a..4977082e081f2303542d34ef230c5d199b2b2f31 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 cab610ccd50e3d2cdf5efaf220dfd8ad5a95cc06..81854586c081fee37e0b3933a26d08e5e8b4e815 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))