Received: by 2002:ac0:de83:0:0:0:0:0 with SMTP id b3csp381498imk; Sat, 2 Jul 2022 21:49:30 -0700 (PDT) X-Google-Smtp-Source: AGRyM1t48EzRYiVuAxXzyCXo3cJ+Whr9QKjQxVVyq+3KKiFVAIXSCUZcqfa2UzYEYIldsrcraJHa X-Received: by 2002:a05:6402:12c2:b0:43a:276b:e54d with SMTP id k2-20020a05640212c200b0043a276be54dmr1095257edx.278.1656823770191; Sat, 02 Jul 2022 21:49:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656823770; cv=none; d=google.com; s=arc-20160816; b=KBphsyjW5OsFtQPJrkmSYTpyGHR4ZBZb/80cf0gaJ1/6oTdik/ljEGEfy6iO0a3MO5 cvIGYQoT/MqZ5CQ9cw70lJebPTbrTXWtiv1tDWT44pmT2rCq+1n+ZHNqQbxX72UeXNHP P+YIXWmKPdRdbKN9B2c5gXAU3Cp4GizaXtWIR8ryXJ7tBJM8EtgZxqR09w8KXwyF7CQT xJVVLcCqxENti7bXbJdqd5+RZFiFcOKuKzGsBsJmF4ozbwKE2sFnWG0FhvEs2Jqkk7Iy OQrW1xZ9IBFcd9MCiGIofvmkXjbYIUsphRXUYTk6ha+pwoFjUYbIGoMBJeVuXOuflFh3 kgQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=ZPp1iqE9WbnI1BB7CGfKQapKem5vMNrsn0GT1sug9GI=; b=tufdKSROYelxJdTPrxQer4hW1ZMkAwErR4+Opo3a33OBftec84MDVevOoBhEK58zUX res8Pk+2LeS5SnxbxTc2EcYEu0wStnySh8i+BZ5klNA91lA6IBvkRcZ2DAKCCYSFwEqL EsYJbmVKAxNfoXEKL3FOUrhSdJAv9YwvofdmKBngrgdDr30X9CWJloWYeytVUBRy1ff8 9/ifF+qQKi3N3hGCnjH+n2va3ev77gtN792U/7o1Flxi5t/P71d8+Efm5Yv7dJka++uv FXjMGFYEy2P3h/pbJsKQrvzQO76wErilwz5gssaSjq3sz/pPFX6PZQO+U27mSAAGt5dj /qRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RXNkE9JF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c90-20020a509fe3000000b0043a1b58fd45si1793008edf.601.2022.07.02.21.49.03; Sat, 02 Jul 2022 21:49:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RXNkE9JF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S231299AbiGCE2b (ORCPT + 99 others); Sun, 3 Jul 2022 00:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53814 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230527AbiGCE2a (ORCPT ); Sun, 3 Jul 2022 00:28:30 -0400 Received: from mail-vs1-xe36.google.com (mail-vs1-xe36.google.com [IPv6:2607:f8b0:4864:20::e36]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C42C65A0; Sat, 2 Jul 2022 21:28:29 -0700 (PDT) Received: by mail-vs1-xe36.google.com with SMTP id t127so6020303vsb.8; Sat, 02 Jul 2022 21:28:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=ZPp1iqE9WbnI1BB7CGfKQapKem5vMNrsn0GT1sug9GI=; b=RXNkE9JF6DjC19sZwzs3/ijuoY4C1yRyI7c4OQwd2w3npPywV4ggvjUuGMIB3dxbEU FlEXg0Wvf5yXXLFMnk9WJ5yAQIp/p1QEWHj6wfgtRhNHzKCJxzm0gAcvqJ+LaVg1TGQc 9sU1d4jC372iPJllloxMm83ytNqmDg2qBlMzI2awz0diZqu9hPSP+hjOE5Hkn29hVk2o xFQg8WWk6Ygott4BaP8PlN9Wo8ScKAZpNnraCOKmNptF2/DDrk7A/fGpYnxfQ0XVHf6n GxC8YbrB68/VTxo29zdkb+W2/Nx9rmI17dP2LzKXLR+lFSIHtnt4Z+zt6tt8vNR468d7 XHoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=ZPp1iqE9WbnI1BB7CGfKQapKem5vMNrsn0GT1sug9GI=; b=s++ibSsqkp90c3aTQ1tLKyeH3+VKVf0ELEVMc21zsLhCN2VA5lnHsoQNwXmK5hqU3b dxBDTFgr/ahdngyU8EhuLXpnqlkJggGFCUtxKa8yfzHiP37aExfV9BwTVKqEFcsZ2yFH ls0d7Vtsdpq6zIAD3ct0y2HSi+gv5/nqzjHCI3BrEoCE2Ft0eL+xdhXrOfijHS5Jab3k zlxkSHi6CIPwxb26vVkbNgCtyCYMwOCWFd6uk90cdGS2aMBJa8Pnt9G94J+csX1mNfSM o5oh+kZ2uCewlQ8lzMXG8fXeATrFYeKyWW7fwZPA1BZl+7ZWQUWZ2mCGwa2XfX3dlOWa 5BLQ== X-Gm-Message-State: AJIora+1KjRhTnjqFnsE0MuTztGq6+T44PD1Vk3rDn5LZNI1CEeqh5Gf CdJnE9W2NE69s6J+tXA2fWst0FZfaD6rry32lF/4trsB+OE= X-Received: by 2002:a67:fe50:0:b0:356:a09d:afe4 with SMTP id m16-20020a67fe50000000b00356a09dafe4mr4322566vsr.6.1656822508482; Sat, 02 Jul 2022 21:28:28 -0700 (PDT) MIME-Version: 1.0 References: <20220628213229.354032-1-colin.i.king@gmail.com> In-Reply-To: <20220628213229.354032-1-colin.i.king@gmail.com> From: Steve French Date: Sat, 2 Jul 2022 23:28:17 -0500 Message-ID: Subject: Re: [PATCH] cifs: remove redundant initialization to variable mnt_sign_enabled To: Colin Ian King Cc: Steve French , CIFS , samba-technical , kernel-janitors , LKML Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org merged into cifs-2.6.git for-next On Tue, Jun 28, 2022 at 4:40 PM Colin Ian King wrote: > > Variable mnt_sign_enabled is being initialized with a value that > is never read, it is being reassigned later on with a different > value. The initialization is redundant and can be removed. > > Cleans up clang scan-build warning: > fs/cifs/cifssmb.c:465:7: warning: Value stored to 'mnt_sign_enabled > during its initialization is never read > > Signed-off-by: Colin Ian King > --- > fs/cifs/cifssmb.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c > index 6371b9eebdad..9ed21752f2df 100644 > --- a/fs/cifs/cifssmb.c > +++ b/fs/cifs/cifssmb.c > @@ -462,7 +462,7 @@ cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required) > { > bool srv_sign_required = server->sec_mode & server->vals->signing_required; > bool srv_sign_enabled = server->sec_mode & server->vals->signing_enabled; > - bool mnt_sign_enabled = global_secflags & CIFSSEC_MAY_SIGN; > + bool mnt_sign_enabled; > > /* > * Is signing required by mnt options? If not then check > -- > 2.35.3 > -- Thanks, Steve