Skip to content

Commit 8b23269

Browse files
bharathsm-msgregkh
authored andcommitted
cifs: remove redundant variable assignment
[ Upstream commit 2760161 ] 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 <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 1598a01 commit 8b23269

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/smb/client/inode.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,6 @@ cifs_get_file_info_unix(struct file *filp)
401401
cifs_unix_basic_to_fattr(&fattr, &find_data, cifs_sb);
402402
} else if (rc == -EREMOTE) {
403403
cifs_create_junction_fattr(&fattr, inode->i_sb);
404-
rc = 0;
405404
} else
406405
goto cifs_gfiunix_out;
407406

@@ -846,7 +845,6 @@ cifs_get_file_info(struct file *filp)
846845
break;
847846
case -EREMOTE:
848847
cifs_create_junction_fattr(&fattr, inode->i_sb);
849-
rc = 0;
850848
break;
851849
case -EOPNOTSUPP:
852850
case -EINVAL:

0 commit comments

Comments
 (0)