summaryrefslogtreecommitdiff
path: root/fs/cifs/cifsfs.c
diff options
context:
space:
mode:
authorColin Ian King <colin.i.king@gmail.com>2021-12-21 03:48:09 +0300
committerSteve French <stfrench@microsoft.com>2022-01-03 05:38:45 +0300
commit0b66fa776c361824a700793e34f866bf479dac92 (patch)
tree89016f96d8aaedf8b0f446b12a689a6f0f5a90b1 /fs/cifs/cifsfs.c
parentc9e6606c7fe92b50a02ce51dda82586ebdf99b48 (diff)
downloadlinux-0b66fa776c361824a700793e34f866bf479dac92.tar.xz
cifs: remove redundant assignment to pointer p
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>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r--fs/cifs/cifsfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index dca42aa87d30..a62a4305f79d 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -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);