[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1359253568-15762-1-git-send-email-linux@roeck-us.net>
Date: Sat, 26 Jan 2013 18:26:08 -0800
From: Guenter Roeck <linux@...ck-us.net>
To: Vladimir Kondratiev <qca_vkondrat@....qualcomm.com>,
"John W. Linville" <linville@...driver.com>
Cc: linux-wireless@...r.kernel.org, wil6210@....qualcomm.com,
netdev@...r.kernel.org, Guenter Roeck <linux@...ck-us.net>
Subject: [PATCH] net: wireless/ath: Fix compile error seen with W=1
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 <linux@...ck-us.net>
---
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);
--
1.7.9.7
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists