cifs: remove redundant variable assignment
[ Upstream commit 2760161d14
]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1598a015c7
commit
8b2326963d
@ -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)
|
|||||||
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:
|
||||||
|
Reference in New Issue
Block a user