]> git.baikalelectronics.ru Git - kernel.git/commitdiff
cifs: remove redundant assignment to pointer p
authorColin Ian King <colin.i.king@gmail.com>
Tue, 21 Dec 2021 00:48:09 +0000 (00:48 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 3 Jan 2022 02:38:45 +0000 (20:38 -0600)
The pointer p is being assigned with a value that is never read. The
pointer is being re-assigned a different value inside the do-while
loop. The assignment is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsfs.c

index dca42aa87d305e9d175b1344145ee6ddd2eae300..a62a4305f79d0070fdf96d83207ea27efeda536f 100644 (file)
@@ -773,7 +773,7 @@ cifs_get_root(struct smb3_fs_context *ctx, struct super_block *sb)
 
        sep = CIFS_DIR_SEP(cifs_sb);
        dentry = dget(sb->s_root);
-       p = s = full_path;
+       s = full_path;
 
        do {
                struct inode *dir = d_inode(dentry);