diff mbox series

cifs: remove redundant assignment to pointer p

Message ID 20211207225340.83827-1-colin.i.king@gmail.com (mailing list archive)
State New, archived
Headers show
Series cifs: remove redundant assignment to pointer p | expand

Commit Message

Colin Ian King Dec. 7, 2021, 10:53 p.m. UTC
The pointer p is assigned a value that is never read, it is being
re-assigned later. The assignment is redundant and can be removed.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
 fs/cifs/cifsfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c
index d3f3acf340f1..61091eed8c65 100644
--- a/fs/cifs/cifsfs.c
+++ b/fs/cifs/cifsfs.c
@@ -775,7 +775,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);