cifs: remove redundant variable assignment
authorBharath SM <bharathsm@microsoft.com>
Thu, 14 Mar 2024 18:06:36 +0000 (23:36 +0530)
committerSteve French <stfrench@microsoft.com>
Thu, 14 Mar 2024 18:54:27 +0000 (13:54 -0500)
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>
fs/smb/client/inode.c

index 6092729bf7f6783faa908f00c9d9ec9ddca1ff3a..d28ab0af60493623f3d209c4f36b5ccea14973bb 100644 (file)
@@ -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: