Commit 2760161d authored by Bharath SM's avatar Bharath SM Committed by Steve French

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: default avatarBharath SM <bharathsm@microsoft.com>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent fc20c523
...@@ -401,7 +401,6 @@ cifs_get_file_info_unix(struct file *filp) ...@@ -401,7 +401,6 @@ cifs_get_file_info_unix(struct file *filp)
cifs_unix_basic_to_fattr(&fattr, &find_data, cifs_sb); cifs_unix_basic_to_fattr(&fattr, &find_data, cifs_sb);
} else if (rc == -EREMOTE) { } else if (rc == -EREMOTE) {
cifs_create_junction_fattr(&fattr, inode->i_sb); cifs_create_junction_fattr(&fattr, inode->i_sb);
rc = 0;
} else } else
goto cifs_gfiunix_out; goto cifs_gfiunix_out;
...@@ -846,7 +845,6 @@ cifs_get_file_info(struct file *filp) ...@@ -846,7 +845,6 @@ cifs_get_file_info(struct file *filp)
break; break;
case -EREMOTE: case -EREMOTE:
cifs_create_junction_fattr(&fattr, inode->i_sb); cifs_create_junction_fattr(&fattr, inode->i_sb);
rc = 0;
break; break;
case -EOPNOTSUPP: case -EOPNOTSUPP:
case -EINVAL: case -EINVAL:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment