From patchwork Thu Jun 16 11:38:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102183 Delivered-To: patch@linaro.org Received: by 10.140.28.4 with SMTP id 4csp212178qgy; Thu, 16 Jun 2016 04:37:36 -0700 (PDT) X-Received: by 10.98.71.15 with SMTP id u15mr4585568pfa.69.1466077056878; Thu, 16 Jun 2016 04:37:36 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w14si5643120pfa.187.2016.06.16.04.37.36; Thu, 16 Jun 2016 04:37:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of netdev-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 netdev-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=netdev-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754130AbcFPLhe (ORCPT + 4 others); Thu, 16 Jun 2016 07:37:34 -0400 Received: from mout.kundenserver.de ([217.72.192.73]:60332 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753285AbcFPLhd (ORCPT ); Thu, 16 Jun 2016 07:37:33 -0400 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue101) with ESMTPA (Nemesis) id 0Lx70L-1bT9js17ST-016d27; Thu, 16 Jun 2016 13:37:21 +0200 From: Arnd Bergmann To: Dept-GELinuxNICDev@qlogic.com Cc: Arnd Bergmann , "David S. Miller" , Rajesh Borundia , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/5] net: qlcnic: don't set unused function argument Date: Thu, 16 Jun 2016 13:38:22 +0200 Message-Id: <20160616113831.4108439-2-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20160616113831.4108439-1-arnd@arndb.de> References: <20160616113831.4108439-1-arnd@arndb.de> X-Provags-ID: V03:K0:lhILXNWMJKsYCa2ANUg53jKj0VAvwkH40DF1omAIMafkjKhWRDG lvYEjq45qLgJevVq9zEg9st8QctAcDvSMY+cifuWxpAhIikCVI3YbhX75PR1IU5lG3aYEZt zxDxYaNJ2ZO1TbRasICiZBhYJ8QZhm+eMsjLdNkwSyjCI/dHGpFeEmfGw0XH5I0aBaiAl0p 26Dg37oj0SHt8jtvtQQhw== X-UI-Out-Filterresults: notjunk:1; V01:K0:w+gH8KYE93Q=:tB8esz/QF5AUU99n41c0a2 61rio5wN1WjnL+lqwJHohp9zIk6Rh5WcBfmI1ydC8OjSMoInzUt3BuA/7Z0t3TJDWEJgqMvZC VMzUXS9axfaNmZsVqxCCQ5wn4m1jE4l29j9fOoHF5eZzOj2rXO+2TrWgZrt4HqbF2ZPqnSlQv wyniC+H/zx1HxxJ/rPRbL9iue2uXzbaJcdkAk0JPZcYrA/CSoqMxbDtB0vasYVpO7L8YiGmBG 6VysXVJQPTMl0KsgSXPGBAkFj93kGo4jYUqVX9VkUMdQfkL+I+/09qagqAmSuguIErCDKousv 1lYb33qy886ri/wEFmhrBXRJRn8cTwgM0EqHApJ/w6vUDXyXNtqOBgjGdJqp/7SG/hIy4WX72 aMoxOVoR8EQamkMwXnnE56MJ7Ra7+NSMBq2GSFfVNuHp76wge8UFhnP7IS/IBHCrqUGOCzsv5 xxqg2dKA98QMNAE1IRGJBUmEkotYn48G5JXtwGq8g6PgsolT+cSxrlzSk22j/IkYde91G5CW9 XY3kVPIbLa0qlqAeLKA3vVSbixfeYZecVcs9GByscua06V83j8zJAEptALNu5mnPIVWL5LGDu og6betVkt+686W5WCqzqLO/7FrLOqhxumGpwm/qWjp/UN0aIFnFmJ2woEXwMd/qOfv+eRKSjS DpPpt+H6dQodpAbwEnBpUsGioNMJy7/tk6HqkvuqZy+l19QdVRh2pjKSXDrFgG5DZ250= Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org We get a warning for qlcnic_83xx_get_mac_address when building with "make W=1": drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c: In function 'qlcnic_83xx_get_mac_address': drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c:2156:8: error: parameter 'function' set but not used [-Werror=unused-but-set-parameter] Clearly this is harmless, but there is also no point for setting the variable, so we can simply remove the assignment. Signed-off-by: Arnd Bergmann --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c | 1 - 1 file changed, 1 deletion(-) -- 2.9.0 diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c index f9640d5ce6ba..bdbcd2b088a0 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.c @@ -2159,7 +2159,6 @@ int qlcnic_83xx_get_mac_address(struct qlcnic_adapter *adapter, u8 *mac, struct qlcnic_cmd_args cmd; u32 mac_low, mac_high; - function = 0; err = qlcnic_alloc_mbx_args(&cmd, adapter, QLCNIC_CMD_MAC_ADDRESS); if (err) return err;