提交 deda484c 编写于 作者: J Justin P. Mattock 提交者: John W. Linville

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: NJustin P. Mattock <justinmattock@gmail.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 abf52f86
...@@ -741,9 +741,7 @@ void hostap_set_multicast_list_queue(struct work_struct *work) ...@@ -741,9 +741,7 @@ void hostap_set_multicast_list_queue(struct work_struct *work)
local_info_t *local = local_info_t *local =
container_of(work, local_info_t, set_multicast_list_queue); container_of(work, local_info_t, set_multicast_list_queue);
struct net_device *dev = local->dev; struct net_device *dev = local->dev;
struct hostap_interface *iface;
iface = netdev_priv(dev);
if (hostap_set_word(dev, HFA384X_RID_PROMISCUOUSMODE, if (hostap_set_word(dev, HFA384X_RID_PROMISCUOUSMODE,
local->is_promisc)) { local->is_promisc)) {
printk(KERN_INFO "%s: %sabling promiscuous mode failed\n", printk(KERN_INFO "%s: %sabling promiscuous mode failed\n",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册