Skip to content

Commit 0b66fa7

Browse files
ColinIanKingsmfrench
authored andcommitted
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>
1 parent c9e6606 commit 0b66fa7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/cifs/cifsfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -773,7 +773,7 @@ cifs_get_root(struct smb3_fs_context *ctx, struct super_block *sb)
773773

774774
sep = CIFS_DIR_SEP(cifs_sb);
775775
dentry = dget(sb->s_root);
776-
p = s = full_path;
776+
s = full_path;
777777

778778
do {
779779
struct inode *dir = d_inode(dentry);

0 commit comments

Comments
 (0)