Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp232060pxf; Thu, 8 Apr 2021 01:34:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwz8OB/oUtJll1LoqHEEEVxkXD1c7MfmaFPc/AZ328I2HRJ/idCsFfvnT8pgLY9wN44p+Vl X-Received: by 2002:a05:6402:148d:: with SMTP id e13mr9781487edv.29.1617870875193; Thu, 08 Apr 2021 01:34:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617870875; cv=none; d=google.com; s=arc-20160816; b=HA7wYUwo5T5WoyJA4nUlMNtqLuWcmftT+fmFrp1O9OaQ42QqIyE1QrW0Oy9z6UorC9 qDWfD/bZ4qT5mptsLWc6W/YfDg7PV+b007o55TD3N9MDR4gRL6lYXIgRg0a0ctUUKFjN IGuheAHH4ArK8qvgkQmtIoLbw1Cyw0+5GtPBtYZuhH2XsvbSqrJbQS4tYpzAc+PMElwt ZkYt8gTDd3Zp6XEV/bqolUd0Zbveiuhp8kdEYc5XKzc5AKoo9s3fS+B6HyOUl+JPy0KB bcBF7smq+k0E5Isk8kPOxaqZm0X9x2C8ifXl0RUYYNW4yXPfLg37ndcbmFEyaTyeL+5P vjxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=/nuwgWpyDXKb3J2ONLHy4Md4GIrt2LE4v1bTNfviPM8=; b=ghPtxhuF293BSDFCADAUrYswiQXL+YDAQ8B8rQWzlseIPVDFbkOvNEbO6UpKDEIO2P Vfp47EVBMfPnLq3HcvE6Hi4MhR5Ng574dfKVKpzlPavxV9pnyDWB/w8N8OqmhS3OteLC e3726IKV1gJg5d6LFq4MWGBGZMDmzfRO4b9k27prRHa6FDc2NfcR7lIKDX5KjjY/owtC 00YQDom/Uj7WF9Ld5kwdFKPgb9m7dJm11yN7dmCq0XHS3PBcVtezSkQ5nK+V5FOEQvgQ vMHDWTIN91oOogkhQdisHiNio/GTPqDEaLYZIsmZqMgE59zYbyh/J4k1IjxNLcK1C+lk MOGw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m22si6430272edp.442.2021.04.08.01.34.12; Thu, 08 Apr 2021 01:34:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229766AbhDHIbX (ORCPT + 99 others); Thu, 8 Apr 2021 04:31:23 -0400 Received: from out30-44.freemail.mail.aliyun.com ([115.124.30.44]:48643 "EHLO out30-44.freemail.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229539AbhDHIbV (ORCPT ); Thu, 8 Apr 2021 04:31:21 -0400 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R111e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e01e04420;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=5;SR=0;TI=SMTPD_---0UUspqwm_1617870663; Received: from j63c13417.sqa.eu95.tbsite.net(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0UUspqwm_1617870663) by smtp.aliyun-inc.com(127.0.0.1); Thu, 08 Apr 2021 16:31:09 +0800 From: Jiapeng Chong To: sfrench@samba.org Cc: linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org, Jiapeng Chong Subject: [PATCH] cifs: Remove useless variable Date: Thu, 8 Apr 2021 16:31:02 +0800 Message-Id: <1617870662-78127-1-git-send-email-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- fs/cifs/cifsacl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/cifs/cifsacl.c b/fs/cifs/cifsacl.c index d178cf8..fdb258a 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); -- 1.8.3.1