hostap:hostap_ioctl.c Fix variable 'hostscan' set but not used
Subsystems (3)
PATCH 1/1 hostap:hostap_ioctl.c Fix variable 'hostscan' set but not used
The patch below fixes a compiler warning:
CC [M] drivers/net/wireless/hostap/hostap_ioctl.odrivers/net/wireless/hostap/hostap_ioctl.c: In function 'prism2_translate_scan':drivers/net/wireless/hostap/hostap_ioctl.c:1954:13: warning: variable 'hostscan' set but not used
Keep in mind I've looked and searched for a fix for this but
couldnt come up with anything.(if there is let me know and I'll have a try at it).
Signed-off-by Justin P. Mattock <[email protected]>
--- drivers/net/wireless/hostap/hostap_ioctl.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
drivers/net/wireless/hostap/hostap_ioctl.c +1 -2
@@ -1951,7 +1951,7 @@ static inline int prism2_translate_scan(local_info_t *local, char *buffer, int buflen) {struct hfa384x_hostscan_result *scan; -int entry, hostscan; +int entry;char *current_ev = buffer;char *end_buf = buffer + buflen;struct list_head *ptr;
@@ -1964,7 +1964,6 @@ static inline int prism2_translate_scan(local_info_t *local, bss->included =0 ; } - hostscan = local->last_scan_type ==PRISM2_HOSTSCAN ;for (entry =0 ; entry < local->last_scan_results_count; entry++) {int found =0 ; scan = &local->last_scan_results[entry];
Signature · 1 line
1.7.1.rc1.21.gf3bd6