Received: by 10.223.148.5 with SMTP id 5csp7703848wrq; Thu, 18 Jan 2018 08:32:40 -0800 (PST) X-Google-Smtp-Source: ACJfBovsJoIk4HWLZyTZdmaW/UpSm3e+J5neNIneqb1XcBulaFX9m+VditUScedOIebMrQ9OTQze X-Received: by 10.98.49.199 with SMTP id x190mr15249136pfx.1.1516293160442; Thu, 18 Jan 2018 08:32:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516293160; cv=none; d=google.com; s=arc-20160816; b=UjkRAwriJp1Wa/tkE0+kRMoc2GnnwUOnq5G6vTQA42qNHZjbluslm716xCkjHj4nHI xTUAyx0Xx5qWkuS/4ld9SN775JdeKtDx53XLEknT+Ef6BJEzKIk5Kehc7ZeAD3x9wZ0B hY4BKYZBoN+NwnV49qgyS02ZpMcDqKydK9zCb/YYMPJC06kC/25U+T4oMLgVvwA5OGX1 DPI6L6C75H09SBs58l0nRyYSb6VHGdxuk2ti3IYCN6DZQhq/2MEoPwANjcBSAA+jTp29 +f0VtMpVeo2fcjRYL5/mxd0Ac27+ybIlSlceNOKaSzR6I3rCxUQs2X/wKrovhUUlMQt1 e50Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=yPyld5G9n6fAwX32izWOav+hWVS6dFpHLCV4kEtuKLE=; b=wBe/T/1JEdGo/XJfjIkP8A/1s6tsaWR5Z7V+GM/EswtQlfrKUUsRJ8/131Eym/SK40 sUgpvmWiuPmH2toYKXIvVmBAW+EFv8Aaln0ElaJhBqEjhM1QUL5/HNf0QCzaDLMxBc54 XLKYhPAo7GhX3D4nzxbirw2JcRfoBVTcwn8JFln1Uyb38iTLT32hZpaKF+sJBrYHA7a3 vwAHx+xZJuoHKBtxeGr4MU7bFU06eMfu68zHuxOUvMOQj/JiH3T5ylHPf7uem2gUNydm LxCaKXYVURw+jFWTYNGO9YP7fLXNZkuWUbvUM23O4zS7/UqixTC1ooII3RBqkWbAuRvd gfgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j80aAeLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 2si7142472pfu.122.2018.01.18.08.32.25; Thu, 18 Jan 2018 08:32:40 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=j80aAeLI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933428AbeARQSS (ORCPT + 99 others); Thu, 18 Jan 2018 11:18:18 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35803 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933392AbeARQSO (ORCPT ); Thu, 18 Jan 2018 11:18:14 -0500 Received: by mail-pf0-f196.google.com with SMTP id t12so14975412pfg.2; Thu, 18 Jan 2018 08:18:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=yPyld5G9n6fAwX32izWOav+hWVS6dFpHLCV4kEtuKLE=; b=j80aAeLI6jv4JA4hqMzhBHMGsou97yXjMZ23lEmlhSl8As3/FXzsWCUJI0Zpi2PV58 ekPB6xFu8pZHnP1eQneYX9HqqQpTbKHRPHwtKcykbz6PEKX4AaU+Pq+g4wODOkAzWqiT ccPryCDB7oOVGjZmqYFlQ0sATcl7bxE0nj8Um7Giv4vtrE83c2J1MxQK/O2l+9lTwsRl W8DR+IC3lbn39cWJu6Flz8hV+aAeX6pV8mn+DruhVWKwWuPAyEBrVmQy+jPxMVRAlZPn ie3vY3YO1fxb2sxqS/OVjdrSe+cbFn4VJKk2tZtrYVOo1EwGygJqMVdwvQOFgEVea+ZN 0q2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=yPyld5G9n6fAwX32izWOav+hWVS6dFpHLCV4kEtuKLE=; b=cActkEbMZBs290m7SNF3xORUjJcu1jp8G5EUMTgCWW1jEqvQLKhtvuytecC5w8qVG8 F2LhOFlFzIP7fX886lp2n/8KdJVpkdMTGE965fdamynT5AwMjcf4IKb2qBuMi3E02MrV Tp9Gawyftzr5mp3InsP3qzWKmT5fgaO1VTfslzvGfEkUB3WaLnnbq+/pqZxq7lo0rT/H hvgH/ZlyZ0kOUgvURvBPmvfWzivXIk0zkapW9knVT3uElBGVEFDUF3Rh/cIjnLi3gNiX xF1cdjPmL77nuugKh9YhvdFXEgsu4W1kJZGA1Ysi0u972xmN1Br6sUZQ7Sjd0Pr7r6p/ 8qBA== X-Gm-Message-State: AKGB3mJjsHnEHPGMb4EjU84MwhHq+j/JobaymNegSnu+j7hbEvj7neBQ TVPzyVY3s770loG31Aj8oeoiKwruwAmqyMchePxMIw== X-Received: by 10.98.163.79 with SMTP id s76mr36397702pfe.67.1516292293659; Thu, 18 Jan 2018 08:18:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.236.172.15 with HTTP; Thu, 18 Jan 2018 08:17:53 -0800 (PST) In-Reply-To: <2031352942.702941.1516230683335.JavaMail.zimbra@redhat.com> References: <20180117095239.10670-1-colin.king@canonical.com> <2031352942.702941.1516230683335.JavaMail.zimbra@redhat.com> From: Steve French Date: Thu, 18 Jan 2018 10:17:53 -0600 Message-ID: Subject: Re: [PATCH] cifs: remove redundant duplicated assignment of pointer 'node' To: Ronnie Sahlberg Cc: Colin King , Steve French , CIFS , samba-technical , kernel-janitors , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org merged into cifs-2.6.git for-next thx On Wed, Jan 17, 2018 at 5:11 PM, Ronnie Sahlberg wrote: > Reviewed-by: Ronnie Sahlberg > > > ----- Original Message ----- > From: "Colin King" > To: "Steve French" , linux-cifs@vger.kernel.org, samba-technical@lists.samba.org > Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org > Sent: Wednesday, 17 January, 2018 8:52:39 PM > Subject: [PATCH] cifs: remove redundant duplicated assignment of pointer 'node' > > From: Colin Ian King > > Node is assigned twice to rb_first(root), first during declaration > time and second after a taking a spin lock, so we have a duplicated > assignment. Remove the first assignment because it is redundant and > also not protected by the spin lock. > > Cleans up clang warning: > fs/cifs/connect.c:4435:18: warning: Value stored to 'node' during > its initialization is never read > > Signed-off-by: Colin Ian King > --- > fs/cifs/connect.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c > index 0efd22e75ac7..63c5d85fe25e 100644 > --- a/fs/cifs/connect.c > +++ b/fs/cifs/connect.c > @@ -4432,7 +4432,7 @@ cifs_prune_tlinks(struct work_struct *work) > struct cifs_sb_info *cifs_sb = container_of(work, struct cifs_sb_info, > prune_tlinks.work); > struct rb_root *root = &cifs_sb->tlink_tree; > - struct rb_node *node = rb_first(root); > + struct rb_node *node; > struct rb_node *tmp; > struct tcon_link *tlink; > > -- > 2.15.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- > To unsubscribe from this list: send the line "unsubscribe linux-cifs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html -- Thanks, Steve