diff options
author | Justin P. Mattock <justinmattock@gmail.com> | 2010-06-16 01:33:50 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-06-18 15:05:11 -0400 |
commit | deda484cd7aacecb5e372f9f649a9b7a9eaebf30 (patch) | |
tree | 16b275688c5a3542dfeae80ba40b84fa2976cdc3 /drivers/net/wireless/hostap | |
parent | abf52f86aa0a49a7377350cafa8f218c4cd227e7 (diff) |
wireless:hostap_main.c warning: variable 'iface' set but not used
The patch below fixes a warning message Im seeing with gcc 4.6.0
CC [M] drivers/net/wireless/hostap/hostap_main.o
drivers/net/wireless/hostap/hostap_main.c: In function 'hostap_set_multicast_list_queue':
drivers/net/wireless/hostap/hostap_main.c:744:27: warning: variable 'iface' set but not used
Signed-off-by: Justin P. Mattock <justinmattock@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/hostap')
-rw-r--r-- | drivers/net/wireless/hostap/hostap_main.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/net/wireless/hostap/hostap_main.c b/drivers/net/wireless/hostap/hostap_main.c index eb57d1ea361f..eaee84b55887 100644 --- a/drivers/net/wireless/hostap/hostap_main.c +++ b/drivers/net/wireless/hostap/hostap_main.c | |||
@@ -741,9 +741,7 @@ void hostap_set_multicast_list_queue(struct work_struct *work) | |||
741 | local_info_t *local = | 741 | local_info_t *local = |
742 | container_of(work, local_info_t, set_multicast_list_queue); | 742 | container_of(work, local_info_t, set_multicast_list_queue); |
743 | struct net_device *dev = local->dev; | 743 | struct net_device *dev = local->dev; |
744 | struct hostap_interface *iface; | ||
745 | 744 | ||
746 | iface = netdev_priv(dev); | ||
747 | if (hostap_set_word(dev, HFA384X_RID_PROMISCUOUSMODE, | 745 | if (hostap_set_word(dev, HFA384X_RID_PROMISCUOUSMODE, |
748 | local->is_promisc)) { | 746 | local->is_promisc)) { |
749 | printk(KERN_INFO "%s: %sabling promiscuous mode failed\n", | 747 | printk(KERN_INFO "%s: %sabling promiscuous mode failed\n", |