Skip to content

Commit 911063b

Browse files
elfringsmfrench
authored andcommitted
smb: client: Omit one redundant variable assignment in cifs_xattr_set()
The local variable “rc” is assigned a value in an if branch without using it before it is reassigned there. Thus delete this assignment statement. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent b9ce798 commit 911063b

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

fs/smb/client/xattr.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ static int cifs_xattr_set(const struct xattr_handler *handler,
178178
memcpy(pacl, value, size);
179179
if (pTcon->ses->server->ops->set_acl) {
180180
int aclflags = 0;
181-
rc = 0;
182181

183182
switch (handler->flags) {
184183
case XATTR_CIFS_NTSD_FULL:

0 commit comments

Comments
 (0)