summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/hostap
diff options
context:
space:
mode:
authorJulian Calaby <julian.calaby@gmail.com>2010-08-17 14:52:41 -0400
committerJohn W. Linville <linville@tuxdriver.com>2010-08-24 16:28:20 -0400
commit24e0f9f84707560d029fe17395f71e99866b438b (patch)
tree38d48382bbb8fd9255d329c73f6f8ffe5a3122ed /drivers/net/wireless/hostap
parent6ddbf8cd39dc1faee7ba60337b11eb02edfcbee6 (diff)
downloadtalos-obmc-linux-24e0f9f84707560d029fe17395f71e99866b438b.tar.gz
talos-obmc-linux-24e0f9f84707560d029fe17395f71e99866b438b.zip
Hostap: Fix "'ret' set but not used" warning message from GCC in hostap
CC [M] drivers/net/wireless/hostap/hostap_ioctl.o drivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_request_scan': drivers/net/wireless/hostap/hostap_ioctl.c:1666:6: warning: variable 'ret' set but not used Signed-off-by: Julian Calaby <julian.calaby@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_ioctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/hostap/hostap_ioctl.c b/drivers/net/wireless/hostap/hostap_ioctl.c
index a85e43a8d758..6038633ef361 100644
--- a/drivers/net/wireless/hostap/hostap_ioctl.c
+++ b/drivers/net/wireless/hostap/hostap_ioctl.c
@@ -1696,7 +1696,7 @@ static int prism2_request_scan(struct net_device *dev)
hostap_set_word(dev, HFA384X_RID_CNFROAMINGMODE,
HFA384X_ROAMING_FIRMWARE);
- return 0;
+ return ret;
}
#else /* !PRISM2_NO_STATION_MODES */
OpenPOWER on IntegriCloud