Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1045884pxf; Thu, 8 Apr 2021 21:13:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyh2C5YIwCOvpapkutfM5ZfcbdQrdo5a9l7pjgMlX6Uol4KEpW1I7pG4qGZ+7M+SSC1F0GU X-Received: by 2002:a17:906:9501:: with SMTP id u1mr14106620ejx.324.1617941606985; Thu, 08 Apr 2021 21:13:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617941606; cv=none; d=google.com; s=arc-20160816; b=YM1R4qn9Tg/gXzaTbksrt9lk/wrUKQbc3MlxsJFbDQnn6f2ACxiF88FNMBepa+CC5q 4+5NwchYlUxI4WMo97d/sg82ntJsuQ5H6HjlFoI1SsHosOnfszfqJWQxzf3qFLQht6sZ IZF9FsAagHXJDiRCcCT97GwyHH6yEz7fhKCEeyo39sWe2F6ufL87cqPGek2JYNS1vlds ajO4ze0v+sud1K7mrBIlEIsAyngRqxppwOormFoJRp4eJM81pyp1FNstnRJOKTnvu0+v A/NOB2OCevcsG8TbzAiplhR7yfeNknWMly9RPbVWX3vTA78EZnDP+ibCfBfqZVTWe1tT aJMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=jrdGfzw0sLrUe/7ljN5TaAvoWpq/FVRgXaiuOP0F+qw=; b=W+i4Fn06LFdz+rLe3uSFx2DfX+JQ+Ry8k6jKthXSZDEAQbRnq6olP6LRwr7Ze1IGQ8 j/a5oB1V+DnfU8NaoP/vTkejBCRq82GiJ6SaOFDvKgdsGi2N/ZVj+t3gR9xvtIfQr67y jxXeRZRq8xf09+OtVeC31lptd/Mw1Wb9+1OLLJUhtyCidGq3A1i0sLn7Juvvyfusmiau uH4rGPetlTVHZ06NjeBstJlZZWfRw2mrLAloZEATlOI98uvDoH0/e2CsH8MsAsqgSgIj xogSyWEBrMNkMzB+AAcruoheibxlDc3c5B+NYK/cC93b20bTY71bDsvskUhjXhQcMacV gb9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BeKsYzEz; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u4si1115476ejx.287.2021.04.08.21.13.04; Thu, 08 Apr 2021 21:13:26 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=BeKsYzEz; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230400AbhDIEKN (ORCPT + 99 others); Fri, 9 Apr 2021 00:10:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbhDIEKM (ORCPT ); Fri, 9 Apr 2021 00:10:12 -0400 Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1826BC061760; Thu, 8 Apr 2021 21:10:00 -0700 (PDT) Received: by mail-lf1-x133.google.com with SMTP id w28so7547665lfn.2; Thu, 08 Apr 2021 21:10:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=jrdGfzw0sLrUe/7ljN5TaAvoWpq/FVRgXaiuOP0F+qw=; b=BeKsYzEzoNKY7lToW6m6+vEexUtrGxIm5fBgoZh7/3PECzuJlRUtfssVfHMIoEPJ3/ 4Po6jKgapuUxiSoDWQ1wDcd5nyluNhOyr2FGUe7RrKgVb/U3R9imrnWyI/TRWcHNbI1o 1C9Rd8Q18uRzGlgVBsdqD/Sc6zepIbBf5E1N4+euuLoogmPSF6qVPMeb75ZDQBhA37YH h31k6F+Qa2h6yRX87wZh41iFw7tHVdqpJHj01KIb3CMsFwGYQyNoyKtyCdOWDbxz1wzp NhJpWJK+OP3Ed3XPoYhADIHcAaHjsHH5BJioERkY2mASm+eW4vLm3ZHVqjPFYthvTKn1 BoBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=jrdGfzw0sLrUe/7ljN5TaAvoWpq/FVRgXaiuOP0F+qw=; b=c/GCkeBX/TQ4ITALrsP5x25CmyTk2Ss8kLKTWQUEi5CMoFurggN7tINM9gHS0hvyxy yZdFXRtD2LDRqOJRX3fts5gwcWiao2mSh4EsXalSW84E8Ay3BaVt5ucOTQP/3tmNmTXx Qk0Y8CuuhLjxKpZp7AY+Sjs9krEc/edJbnf2DSOd33P+nuuFG4ty3RrUiHdscbbWITEk gFZGlkjlewQFsXBcA4JnPtSODy4cA/RScmqpzCs1ZgsKmWL6/GnUJv/7SA668am1TBTT xMFPNJukvKyaj+mWEJjYqvSSRgEGpmZoj0sy44nf9nrvbzDjhtkDw/b+hfluDisbVls4 4FAA== X-Gm-Message-State: AOAM530/f7x1FxBLtIJM3CCzXreEW1M7pz9cSs4+EQZIa0svtAJPfyJ0 MQZDvwu35dn/9kBAfzrDMF71eU8l00DWj5qzIE4= X-Received: by 2002:a19:8c0a:: with SMTP id o10mr9056546lfd.175.1617941398568; Thu, 08 Apr 2021 21:09:58 -0700 (PDT) MIME-Version: 1.0 References: <1617870662-78127-1-git-send-email-jiapeng.chong@linux.alibaba.com> In-Reply-To: <1617870662-78127-1-git-send-email-jiapeng.chong@linux.alibaba.com> From: Steve French Date: Thu, 8 Apr 2021 23:09:47 -0500 Message-ID: Subject: Re: [PATCH] cifs: Remove useless variable To: Jiapeng Chong Cc: Steve French , CIFS , samba-technical , LKML Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org merged into cifs-2.6.git for-next On Thu, Apr 8, 2021 at 3:33 AM Jiapeng Chong wrote: > > Fix the following gcc warning: > > fs/cifs/cifsacl.c:1097:8: warning: variable =E2=80=98nmode=E2=80=99 set b= ut 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 =3D NULL; > char *nacl_base =3D NULL; > u32 num_aces =3D 0; > - __u64 nmode; > bool new_aces_set =3D false; > > /* Assuming that pndacl and pnmode are never NULL */ > - nmode =3D *pnmode; > nacl_base =3D (char *)pndacl; > nsize =3D sizeof(struct cifs_acl); > > -- > 1.8.3.1 > --=20 Thanks, Steve