From: Jiapeng Chong Date: Thu, 8 Apr 2021 08:31:02 +0000 (+0800) Subject: cifs: Remove useless variable X-Git-Tag: accepted/tizen/unified/20230118.172025~7282^2~48 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83cd9ed7ae720c216e7b57b607ae26af603594db;p=platform%2Fkernel%2Flinux-rpi.git cifs: Remove useless variable Fix the following gcc warning: fs/cifs/cifsacl.c:1097:8: warning: variable ‘nmode’ set but not used [-Wunused-but-set-variable]. Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong Signed-off-by: Steve French --- diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index bbc4397..784407f 100644 --- a/fs/cifs/cifsacl.c +++ b/fs/cifs/cifsacl.c @@ -1094,11 +1094,9 @@ static int set_chmod_dacl(struct cifs_acl *pdacl, struct cifs_acl *pndacl, struct cifs_ace *pnntace = NULL; char *nacl_base = NULL; u32 num_aces = 0; - __u64 nmode; bool new_aces_set = false; /* Assuming that pndacl and pnmode are never NULL */ - nmode = *pnmode; nacl_base = (char *)pndacl; nsize = sizeof(struct cifs_acl);