]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
afs: remove redundant assignment of dvnode to itself
authorColin Ian King <colin.king@canonical.com>
Mon, 20 Nov 2017 13:58:20 +0000 (13:58 +0000)
committerDavid Howells <dhowells@redhat.com>
Fri, 24 Nov 2017 13:55:46 +0000 (13:55 +0000)
The assignment of dvnode to itself is redundant and can be removed.
Cleans up warning detected by cppcheck:

fs/afs/dir.c:975: (warning) Redundant assignment of 'dvnode' to itself.

Fixes: d2ddc776a458 ("afs: Overhaul volume and server record caching and fileserver rotation")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David Howells <dhowells@redhat.com>
fs/afs/dir.c

index c023249694299915e8162b82b26b0f759145c3f7..ff8d5bf4354f306227a297ca542078580ca57e34 100644 (file)
@@ -974,7 +974,7 @@ static int afs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
        struct afs_fs_cursor fc;
        struct afs_file_status newstatus;
        struct afs_callback newcb;
-       struct afs_vnode *dvnode = dvnode = AFS_FS_I(dir);
+       struct afs_vnode *dvnode = AFS_FS_I(dir);
        struct afs_fid newfid;
        struct key *key;
        int ret;