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>
This commit is contained in:
Julian Calaby 2010-08-17 14:52:41 -04:00 committed by John W. Linville
parent 6ddbf8cd39
commit 24e0f9f847

View File

@ -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 */