* [PATCH] net: iwlegacy: remove unused variable
@ 2013-01-27 18:55 ` Guenter Roeck
0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-01-27 18:55 UTC (permalink / raw)
To: Stanislaw Gruszka, John W. Linville; +Cc: linux-wireless, netdev, Guenter Roeck
Fix:
drivers/net/wireless/iwlegacy/4965.c: In function ‘il4965_post_associate’:
drivers/net/wireless/iwlegacy/4965.c:1751:25: warning: variable ‘conf’ set but
not used [-Wunused-but-set-variable]
seen when building allmodconfig on x86_64 with W=1 by removing the unused
variable.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
---
drivers/net/wireless/iwlegacy/4965.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/wireless/iwlegacy/4965.c b/drivers/net/wireless/iwlegacy/4965.c
index 5db1171..91eb2d0 100644
--- a/drivers/net/wireless/iwlegacy/4965.c
+++ b/drivers/net/wireless/iwlegacy/4965.c
@@ -1748,7 +1748,6 @@ static void
il4965_post_associate(struct il_priv *il)
{
struct ieee80211_vif *vif = il->vif;
- struct ieee80211_conf *conf = NULL;
int ret = 0;
if (!vif || !il->is_open)
@@ -1759,8 +1758,6 @@ il4965_post_associate(struct il_priv *il)
il_scan_cancel_timeout(il, 200);
- conf = &il->hw->conf;
-
il->staging.filter_flags &= ~RXON_FILTER_ASSOC_MSK;
il_commit_rxon(il);
--
1.7.9.7
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH] net: iwlegacy: remove unused variable
@ 2013-01-27 18:55 ` Guenter Roeck
0 siblings, 0 replies; 4+ messages in thread
From: Guenter Roeck @ 2013-01-27 18:55 UTC (permalink / raw)
To: Stanislaw Gruszka, John W. Linville
Cc: linux-wireless-u79uwXL29TY76Z2rM5mHXA,
netdev-u79uwXL29TY76Z2rM5mHXA, Guenter Roeck
Fix:
drivers/net/wireless/iwlegacy/4965.c: In function ‘il4965_post_associate’:
drivers/net/wireless/iwlegacy/4965.c:1751:25: warning: variable ‘conf’ set but
not used [-Wunused-but-set-variable]
seen when building allmodconfig on x86_64 with W=1 by removing the unused
variable.
Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
---
drivers/net/wireless/iwlegacy/4965.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/net/wireless/iwlegacy/4965.c b/drivers/net/wireless/iwlegacy/4965.c
index 5db1171..91eb2d0 100644
--- a/drivers/net/wireless/iwlegacy/4965.c
+++ b/drivers/net/wireless/iwlegacy/4965.c
@@ -1748,7 +1748,6 @@ static void
il4965_post_associate(struct il_priv *il)
{
struct ieee80211_vif *vif = il->vif;
- struct ieee80211_conf *conf = NULL;
int ret = 0;
if (!vif || !il->is_open)
@@ -1759,8 +1758,6 @@ il4965_post_associate(struct il_priv *il)
il_scan_cancel_timeout(il, 200);
- conf = &il->hw->conf;
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] net: iwlegacy: remove unused variable
@ 2013-01-28 9:56 ` Stanislaw Gruszka
0 siblings, 0 replies; 4+ messages in thread
From: Stanislaw Gruszka @ 2013-01-28 9:56 UTC (permalink / raw)
To: Guenter Roeck; +Cc: John W. Linville, linux-wireless, netdev
On Sun, Jan 27, 2013 at 10:55:41AM -0800, Guenter Roeck wrote:
> drivers/net/wireless/iwlegacy/4965.c: In function ‘il4965_post_associate’:
> drivers/net/wireless/iwlegacy/4965.c:1751:25: warning: variable ‘conf’ set but
> not used [-Wunused-but-set-variable]
>
> seen when building allmodconfig on x86_64 with W=1 by removing the unused
> variable.
>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
ACK
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] net: iwlegacy: remove unused variable
@ 2013-01-28 9:56 ` Stanislaw Gruszka
0 siblings, 0 replies; 4+ messages in thread
From: Stanislaw Gruszka @ 2013-01-28 9:56 UTC (permalink / raw)
To: Guenter Roeck
Cc: John W. Linville, linux-wireless-u79uwXL29TY76Z2rM5mHXA,
netdev-u79uwXL29TY76Z2rM5mHXA
On Sun, Jan 27, 2013 at 10:55:41AM -0800, Guenter Roeck wrote:
> drivers/net/wireless/iwlegacy/4965.c: In function ‘il4965_post_associate’:
> drivers/net/wireless/iwlegacy/4965.c:1751:25: warning: variable ‘conf’ set but
> not used [-Wunused-but-set-variable]
>
> seen when building allmodconfig on x86_64 with W=1 by removing the unused
> variable.
>
> Signed-off-by: Guenter Roeck <linux-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
ACK
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-01-28 9:56 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-27 18:55 [PATCH] net: iwlegacy: remove unused variable Guenter Roeck
2013-01-27 18:55 ` Guenter Roeck
2013-01-28 9:56 ` Stanislaw Gruszka
2013-01-28 9:56 ` Stanislaw Gruszka
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.