Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp23323862rwd; Fri, 30 Jun 2023 23:15:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlHDWM6Mv0yPP2o3273d/Q/LYRobN/83kRSy1vBXjWhevU0t8RKVb/wbb8/QwKqnF4cktLXV X-Received: by 2002:a25:dac5:0:b0:bca:9326:2f5e with SMTP id n188-20020a25dac5000000b00bca93262f5emr4246034ybf.39.1688192145556; Fri, 30 Jun 2023 23:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688192145; cv=none; d=google.com; s=arc-20160816; b=d1d//oCicBz+GFCdCTzyFptCag0d+RcYvrzTqobM+CSSEuTym39OVEQ2vVN9ViKvje fFlhZIM1XhPxqJvl+yK6QyKPxBbnhlUIyekDUAqNA3xJaas3S1V1YQ2pim3QZkfQC7Es JV4JMJu7Q7pQrUKRbccWOOYVJBCftdPMmiDQkcAYNfhjgHGiJQaELmEQ7vi96YJY9sh+ Sx90ROJf1xzMsJKuuCMID+ubmW+FH5s+NS+TWNntBDt33Z5TeIererbBK8VwjtvgJVjS QLBxZt25ZYJHAiHP2zljoz1l0G1lhYuuZ7JszyW2TXOY6CrroqbRqikKewjI+1qbP2RC fL/Q== 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=UWSfT3e2CdHXT3PPccjwI1PvUkLEKr2RqsUNIeb0KVU=; fh=kiFLYEvf58bF9kcslTDBxGehOrU0Guhz0h63VItf1+Y=; b=SZdOjviRLVBjNfGyDLGieXHLNgSdWXy08cc0QcE8jokzsTdrmHynl5/5YsZI1I+jat mNKyGHCXvx8wp44cmzZz8PyB4k6XtuMGQ0ESTTwe8SfxAw3J/yeps0JpkoDJ91tZ8VMP TwAAWiBmYHybV4T/eBDRXKGYkn/+h21ChFIy/FS/OexrWh/HgQ8GlI0N4RM0s7aVtha1 NUyLt2ddqUePaG6yH343TnBOZvCSzEnSrGMMoNhX5QL8XVgG4LvqHBfeXoiIN66cYoOL NGTAUKVpuRp2AKFCkmdqCygVUS2XeKb4eQEQ9JihVP5ySY4X/VsdAYb51zIZkSK9VuIA 1/cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=dv4BNmhK; 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 w70-20020a638249000000b0055acc7f8086si11623462pgd.821.2023.06.30.23.15.25; Fri, 30 Jun 2023 23:15:45 -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=20221208 header.b=dv4BNmhK; 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 S229552AbjGAFYL (ORCPT + 99 others); Sat, 1 Jul 2023 01:24:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33232 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229456AbjGAFYF (ORCPT ); Sat, 1 Jul 2023 01:24:05 -0400 Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CAF94204; Fri, 30 Jun 2023 22:24:04 -0700 (PDT) Received: by mail-lj1-x229.google.com with SMTP id 38308e7fff4ca-2b5c231c23aso42708831fa.0; Fri, 30 Jun 2023 22:24:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1688189042; x=1690781042; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=UWSfT3e2CdHXT3PPccjwI1PvUkLEKr2RqsUNIeb0KVU=; b=dv4BNmhKurSjr4SFlv7PvcW3oxS+o5nRZ0A8lZkOheALgd3YqDXfLTZeSoDO3TwBO4 HeowMn4na6OlBLRtOwoXYQ9LpIT6ZY/iOzYi2Nn5U0IkAUbGVj/fVT6eU9tM/XYiM68U 7+00JLc0mja0wzB2ItiXGm0kOMLiyTqLhi6UXs6Eb24uspVLE18y8n8X7jtCqxmDPO9W uzMm8WlrJxeJguV4qoXVRw6siOUYOkaKFRN5cXEPz8JN/lUMzKzHr2Lj68wXrp1YJTr7 rtSrycUqnjmq5hSVc8EzFqhtwWoFfNri+c0UhLgeHAPcxIa1AhcDfjVDdAB8acEuPM8+ CWcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1688189042; x=1690781042; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UWSfT3e2CdHXT3PPccjwI1PvUkLEKr2RqsUNIeb0KVU=; b=KgJI3wBoEri1AT0CBoYlk7V+J2zH/956Cce5ZQ9C19cBkR6bLMxS/8ALQq3JP3+mGE fOUY3c3iP+kAdMuPvp2wpP054tOOj+/U/C/MFK09ETEjnYL5E3z39GigQWkzcxiDUqq1 Dy4db4jHYUZzKIloGLHkT0fg7ydYBQAEgmwVbJ7MzRIqeYRVWRPSinsaFlqnT6T2fXoU QSodpBfEkArtdyB2SA57J3sZLkRKaQkIFYBwxWBusYGWOMMiLiVeIJNARydSmRczOrr3 uKjpfib8sbvR+mOOz4lpDKMBKhank+BHpx3Ymk0kGd9oO0cbXFx++a+r7scMe4LK815I WGGQ== X-Gm-Message-State: ABy/qLZllEm2bXdc3hosbrIFJlTm3xH7wKjEFuY6417sUBzAEaxKypEH rEm8kgIdrEk2OWPubgmYSCZNmqcHU5dr+oBKI2E= X-Received: by 2002:a2e:88c8:0:b0:2b6:ca1d:ee88 with SMTP id a8-20020a2e88c8000000b002b6ca1dee88mr3354057ljk.12.1688189042086; Fri, 30 Jun 2023 22:24:02 -0700 (PDT) MIME-Version: 1.0 References: <20230630113337.123257-1-colin.i.king@gmail.com> In-Reply-To: <20230630113337.123257-1-colin.i.king@gmail.com> From: Steve French Date: Sat, 1 Jul 2023 00:23:50 -0500 Message-ID: Subject: Re: [PATCH][next] smb: client: remove redundant pointer 'server' To: Colin Ian King Cc: Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 Fri, Jun 30, 2023 at 6:35=E2=80=AFAM Colin Ian King wrote: > > The pointer 'server' is assigned but never read, the pointer is > redundant and can be removed. Cleans up clang scan build warning: > > fs/smb/client/dfs.c:217:3: warning: Value stored to 'server' is > never read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King > --- > fs/smb/client/dfs.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/fs/smb/client/dfs.c b/fs/smb/client/dfs.c > index 26d14dd0482e..1403a2d1ab17 100644 > --- a/fs/smb/client/dfs.c > +++ b/fs/smb/client/dfs.c > @@ -143,7 +143,6 @@ static int __dfs_mount_share(struct cifs_mount_ctx *m= nt_ctx) > struct smb3_fs_context *ctx =3D mnt_ctx->fs_ctx; > char *ref_path =3D NULL, *full_path =3D NULL; > struct dfs_cache_tgt_iterator *tit; > - struct TCP_Server_Info *server; > struct cifs_tcon *tcon; > char *origin_fullpath =3D NULL; > char sep =3D CIFS_DIR_SEP(cifs_sb); > @@ -214,7 +213,6 @@ static int __dfs_mount_share(struct cifs_mount_ctx *m= nt_ctx) > } while (rc =3D=3D -EREMOTE); > > if (!rc) { > - server =3D mnt_ctx->server; > tcon =3D mnt_ctx->tcon; > > spin_lock(&tcon->tc_lock); > -- > 2.39.2 > --=20 Thanks, Steve