From patchwork Thu Jan 19 09:33:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 9525353 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8C31260113 for ; Thu, 19 Jan 2017 09:34:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 75491277D9 for ; Thu, 19 Jan 2017 09:34:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6902627F9E; Thu, 19 Jan 2017 09:34:40 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 235AC277D9 for ; Thu, 19 Jan 2017 09:34:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751339AbdASJeR (ORCPT ); Thu, 19 Jan 2017 04:34:17 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:65157 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbdASJeO (ORCPT ); Thu, 19 Jan 2017 04:34:14 -0500 Received: from wuerfel.lan ([78.43.21.235]) by mrelayeu.kundenserver.de (mreue102 [212.227.15.145]) with ESMTPA (Nemesis) id 0Md4eg-1cmMkJ1X3C-00IHEP; Thu, 19 Jan 2017 10:34:05 +0100 From: Arnd Bergmann To: Saeed Mahameed , Matan Barak , Leon Romanovsky Cc: Arnd Bergmann , "David S. Miller" , Gal Pressman , Tariq Toukan , Maor Gottlieb , Eran Ben Elisha , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net/mlx5e: Remove unused variable Date: Thu, 19 Jan 2017 10:33:29 +0100 Message-Id: <20170119093401.2582672-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:2VH21ql0oKAJxozVw2l2o9z4lsA6JfwZF3BZyFGku079lshi6kw 9E1zhPWO/kMxTLcTc8Srf/tKH1b/uQTKzZpyss2fV639nCZMKrVTwO76gPN3rkI7nFBE4z5 LK1MI0ez0i3ja/DOqBk/a99t4myqW1RmUr4/c8KYToggb+EXlm3yxCWYt1uGWwEviBCN/e0 nNqU98smddEsPXFmgcOTw== X-UI-Out-Filterresults: notjunk:1; V01:K0:OosU0hRFegQ=:1CjtrNez8kCE3Dqxyn8X+J ODTVt0jDlDmFDfvrAKf6uAVhexjc2bSgSAl3+vAh0/NLMm6N/a4QF1D5ooS7SZaeaNkkvIQeQ o2Q5kyuUxAnGgoBfATxF+v+3P4KIAlAzRo/SZD3Lt0Imdb5+rJSD3YJoXv+IQgbg7E3Yytci5 cbQh1s8rRFFlC1mYhm/hQ1Df72CMbn3olrtQTapz3VtZezpTifZSt5YEVMhksqAZl83pqeHnI 48tf11cPvpdmTJp1a7f2HHczooF9CtTaa3jyBD3tCN0byTjDP68C1+6EiwpsNJxc3/7VFY5Bv lA3IJEg9XMJOpjixt1H1phbaMrrJsvnkkLLNH5bOneQSo/pG0/Dq4g0968jSraMs2cMF/QJ4U XWqaVSm9skGoYaO1rUZ532u7rry7ZapPKJEEzgCvvpPGsxgntIRYb1zwOv3OPQlTvKURGo+Iq xL6v+3bx+doK0pdbdYww0s9n0iEAsJa5TRmCx93enYCvq+tedGqbnVFzgJrlQ23Pri0QI+GUl nPwNWk94A/5ycRqYtIP9gh+ZH8i0asvgbrKzv5GRbn/uDHfmz2IOhtW488IbtLeynFe30EQGu rRrnosf/kSHB5hKhvXXfHu+X5ofFYVXBchdJoV111fZynDEgCWKiJ+J+iXXGqVo7Sgr78knPW ijsyaaffncbjFI4E8UdBtqMZUH6sR8k4hEECg/74PAWpj4TmSjsZeQmIsON5P3L4HiOk= Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP A cleanup removed the only user of this variable mlx5/core/en_ethtool.c: In function 'mlx5e_set_channels': mlx5/core/en_ethtool.c:546:6: error: unused variable 'ncv' [-Werror=unused-variable] Let's remove the declaration as well. Fixes: 639e9e94160e ("net/mlx5e: Remove unnecessary checks when setting num channels") Signed-off-by: Arnd Bergmann Reported-by: Stephen Rothwell Reviewed-by: Tariq Toukan --- drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c index b1b9eb6ee135..5197817e4b2f 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c @@ -543,7 +543,6 @@ static int mlx5e_set_channels(struct net_device *dev, struct ethtool_channels *ch) { struct mlx5e_priv *priv = netdev_priv(dev); - int ncv = mlx5e_get_max_num_channels(priv->mdev); unsigned int count = ch->combined_count; bool arfs_enabled; bool was_opened;