From patchwork Sun Jan 27 02:26:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Guenter Roeck X-Patchwork-Id: 2050771 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 148963FCDE for ; Sun, 27 Jan 2013 02:26:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755243Ab3A0C0A (ORCPT ); Sat, 26 Jan 2013 21:26:00 -0500 Received: from mail.active-venture.com ([67.228.131.205]:65278 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755170Ab3A0C0A (ORCPT ); Sat, 26 Jan 2013 21:26:00 -0500 Received: (qmail 15474 invoked by uid 399); 27 Jan 2013 02:25:59 -0000 X-Virus-Scan: Scanned by ClamAV 0.97.2 (no viruses); Sat, 26 Jan 2013 20:25:59 -0600 Received: from unknown (HELO localhost) (guenter@roeck-us.net@108.223.40.66) by mail.active-venture.com with ESMTPAM; 27 Jan 2013 02:25:59 -0000 X-Originating-IP: 108.223.40.66 X-Sender: guenter@roeck-us.net From: Guenter Roeck To: Vladimir Kondratiev , "John W. Linville" Cc: linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com, netdev@vger.kernel.org, Guenter Roeck Subject: [PATCH] net: wireless/ath: Fix compile error seen with W=1 Date: Sat, 26 Jan 2013 18:26:08 -0800 Message-Id: <1359253568-15762-1-git-send-email-linux@roeck-us.net> X-Mailer: git-send-email 1.7.9.7 MIME-Version: 1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org make W=1 for x86_64 fails with drivers/net/wireless/ath/wil6210/txrx.c: In function ‘wil_rx_fini’: drivers/net/wireless/ath/wil6210/txrx.c:550:7: error: variable ‘rc’ set but not used [-Werror=unused-but-set-variable] Fix by dropping the variable. Signed-off-by: Guenter Roeck --- drivers/net/wireless/ath/wil6210/txrx.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index f29c294..b6e8042 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -547,7 +547,6 @@ void wil_rx_fini(struct wil6210_priv *wil) struct vring *vring = &wil->vring_rx; if (vring->va) { - int rc; struct wmi_cfg_rx_chain_cmd cmd = { .action = cpu_to_le32(WMI_RX_CHAIN_DEL), .rx_sw_ring = { @@ -559,7 +558,7 @@ void wil_rx_fini(struct wil6210_priv *wil) struct wmi_cfg_rx_chain_done_event cfg; } __packed wmi_rx_cfg_reply; - rc = wmi_call(wil, WMI_CFG_RX_CHAIN_CMDID, &cmd, sizeof(cmd), + (void)wmi_call(wil, WMI_CFG_RX_CHAIN_CMDID, &cmd, sizeof(cmd), WMI_CFG_RX_CHAIN_DONE_EVENTID, &wmi_rx_cfg_reply, sizeof(wmi_rx_cfg_reply), 100);