aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBharath SM <bharathsm@microsoft.com>2024-03-14 23:36:36 +0530
committerSteve French <stfrench@microsoft.com>2024-03-14 13:54:27 -0500
commit2760161d149f8d60c3f767fc62a823a1ead9d367 (patch)
tree48c0b5d16429dc5fe050fabe070f5577183b3ef8
parentfc20c523211a38b87fc850a959cb2149e4fd64b0 (diff)
downloadlinux-2760161d149f8d60c3f767fc62a823a1ead9d367.tar.gz
cifs: remove redundant variable assignment
This removes an unnecessary variable assignment. The assigned value will be overwritten by cifs_fattr_to_inode before it is accessed, making the line redundant. Signed-off-by: Bharath SM <bharathsm@microsoft.com> Signed-off-by: Steve French <stfrench@microsoft.com>
-rw-r--r--fs/smb/client/inode.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c
index 6092729bf7f67..d28ab0af60493 100644
--- a/fs/smb/client/inode.c
+++ b/fs/smb/client/inode.c
@@ -401,7 +401,6 @@ cifs_get_file_info_unix(struct file *filp)
cifs_unix_basic_to_fattr(&fattr, &find_data, cifs_sb);
} else if (rc == -EREMOTE) {
cifs_create_junction_fattr(&fattr, inode->i_sb);
- rc = 0;
} else
goto cifs_gfiunix_out;
@@ -846,7 +845,6 @@ cifs_get_file_info(struct file *filp)
break;
case -EREMOTE:
cifs_create_junction_fattr(&fattr, inode->i_sb);
- rc = 0;
break;
case -EOPNOTSUPP:
case -EINVAL: