Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp7739102ybh; Thu, 8 Aug 2019 22:32:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqwUOnTt6BXGLQUahd3nprSuGXyw93HXZgCE2EbtVNeXBrhMQJwY/PDALzQEHjoQKmKvZyes X-Received: by 2002:a65:4546:: with SMTP id x6mr15694565pgr.266.1565328741823; Thu, 08 Aug 2019 22:32:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565328741; cv=none; d=google.com; s=arc-20160816; b=f+g9Il9V+eQv9OKmqvMN9vY5w9iv/X57phPHQznyf+9CGf/Ff4zYvCNRRABNCDZfBd De2aOKclYl07qLBsdXGe+ghA1ZL510NFnI3hK/uxByfi5gQU4zZjJH3kYHZQ2DBrV8Ct eiE+PQt0mBLvklX7ca8HIp0YoNJ/bGjSLM4q5VKNxSv75Sc5ey1mshJ+Sj86HVGJJUHf kgsTG+G7cWA9s5ReG3B4nKPWpWcxzHlcNPV1ZACtry1P8/Lmg+5r4snYMYMxBCgrP7HB ARfrrG3lV3yW+YOTtTxPu2C4lDfMe2LWWFU3Ff5rZ7iUGf4ZCbMtT04pFaZXeTpkYdvT DzeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=DAM+6ISRe1IN9oCy6a12G3skYXAB3dtSwR1iRhUCoRk=; b=kIoCOcIjXowYYvGSwVfLOUV4X29jEiS46vQeJnBQn/iAt07hAjw4NgDZv70PWtMUMo YNZe8tMMZxjJFgIv06W/wwz1nC9zt/vhojTBQkxaWbYTSPn4Jj0/XvxaEDxd45sEXQsZ 9+Nn/sJfsNgdXNQ4K3EGU9VEZGwbXqxkG0UNhFLW6BrMl6cNbohTfJmKlmvgHfqqYt3d 6+QXSYeTeptRDYHC/JjmgvzbBH79ydY34VXtl9CYNKTNbP4Nwp02Qz7ZkX/1khLCO8Lw 8YLjAcSi1LSceVKvw0FXrab78WX7lx7IvxPnD85qcr2TVKh+cC8Kv29s9i53xD1bB/LW zrcw== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x1si54574232pgt.258.2019.08.08.22.32.05; Thu, 08 Aug 2019 22:32:21 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405458AbfHIF3U (ORCPT + 99 others); Fri, 9 Aug 2019 01:29:20 -0400 Received: from shards.monkeyblade.net ([23.128.96.9]:56112 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725920AbfHIF3T (ORCPT ); Fri, 9 Aug 2019 01:29:19 -0400 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::d71]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id E2A53142D945E; Thu, 8 Aug 2019 22:29:18 -0700 (PDT) Date: Thu, 08 Aug 2019 22:29:18 -0700 (PDT) Message-Id: <20190808.222918.392250791879252329.davem@davemloft.net> To: yuehaibing@huawei.com Cc: olteanv@gmail.com, andrew@lunn.ch, vivien.didelot@gmail.com, f.fainelli@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next] net: dsa: sja1105: remove set but not used variables 'tx_vid' and 'rx_vid' From: David Miller In-Reply-To: <20190807130856.60792-1-yuehaibing@huawei.com> References: <20190807130856.60792-1-yuehaibing@huawei.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Thu, 08 Aug 2019 22:29:19 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: YueHaibing Date: Wed, 7 Aug 2019 21:08:56 +0800 > Fixes gcc '-Wunused-but-set-variable' warning: > > drivers/net/dsa/sja1105/sja1105_main.c: In function sja1105_fdb_dump: > drivers/net/dsa/sja1105/sja1105_main.c:1226:14: warning: > variable tx_vid set but not used [-Wunused-but-set-variable] > drivers/net/dsa/sja1105/sja1105_main.c:1226:6: warning: > variable rx_vid set but not used [-Wunused-but-set-variable] > > They are not used since commit 6d7c7d948a2e ("net: dsa: > sja1105: Fix broken learning with vlan_filtering disabled") > > Reported-by: Hulk Robot > Signed-off-by: YueHaibing Applied to 'net'.