]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
wireless:hostap_main.c warning: variable 'iface' set but not used
authorJustin P. Mattock <justinmattock@gmail.com>
Wed, 16 Jun 2010 05:33:50 +0000 (22:33 -0700)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 18 Jun 2010 19:05:11 +0000 (15:05 -0400)
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>
drivers/net/wireless/hostap/hostap_main.c

index eb57d1ea361f73738ee22451e29e6b799a82db81..eaee84b55887b7306491151b2cd0db163158dfb1 100644 (file)
@@ -741,9 +741,7 @@ void hostap_set_multicast_list_queue(struct work_struct *work)
        local_info_t *local =
                container_of(work, local_info_t, set_multicast_list_queue);
        struct net_device *dev = local->dev;
-       struct hostap_interface *iface;
 
-       iface = netdev_priv(dev);
        if (hostap_set_word(dev, HFA384X_RID_PROMISCUOUSMODE,
                            local->is_promisc)) {
                printk(KERN_INFO "%s: %sabling promiscuous mode failed\n",