]> www.infradead.org Git - users/hch/misc.git/commitdiff
smb: client: Omit one redundant variable assignment in cifs_xattr_set()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 10 Oct 2025 12:48:13 +0000 (14:48 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 13 Oct 2025 13:26:22 +0000 (08:26 -0500)
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>
fs/smb/client/xattr.c

index b88fa04f57921827fc7dea86c535ef7bd9b47145..029910d56c22e5827f4fb49e65755276ac067354 100644 (file)
@@ -178,7 +178,6 @@ static int cifs_xattr_set(const struct xattr_handler *handler,
                        memcpy(pacl, value, size);
                        if (pTcon->ses->server->ops->set_acl) {
                                int aclflags = 0;
-                               rc = 0;
 
                                switch (handler->flags) {
                                case XATTR_CIFS_NTSD_FULL: