Remove unnecessary return value

wpa_bss_flush*() cannot fail and as such, there is no need for
wpa_supplicant_ctrl_iface_bss_flush() to return a value either.

Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2014-12-13 19:22:23 +02:00
parent 5ac73acf12
commit a1144000cd

View file

@ -4132,7 +4132,7 @@ static int wpa_supplicant_ctrl_iface_bss_expire_count(
} }
static int wpa_supplicant_ctrl_iface_bss_flush( static void wpa_supplicant_ctrl_iface_bss_flush(
struct wpa_supplicant *wpa_s, char *cmd) struct wpa_supplicant *wpa_s, char *cmd)
{ {
int flush_age = atoi(cmd); int flush_age = atoi(cmd);
@ -4141,7 +4141,6 @@ static int wpa_supplicant_ctrl_iface_bss_flush(
wpa_bss_flush(wpa_s); wpa_bss_flush(wpa_s);
else else
wpa_bss_flush_by_age(wpa_s, flush_age); wpa_bss_flush_by_age(wpa_s, flush_age);
return 0;
} }
@ -7486,8 +7485,7 @@ char * wpa_supplicant_ctrl_iface_process(struct wpa_supplicant *wpa_s,
buf + 17)) buf + 17))
reply_len = -1; reply_len = -1;
} else if (os_strncmp(buf, "BSS_FLUSH ", 10) == 0) { } else if (os_strncmp(buf, "BSS_FLUSH ", 10) == 0) {
if (wpa_supplicant_ctrl_iface_bss_flush(wpa_s, buf + 10)) wpa_supplicant_ctrl_iface_bss_flush(wpa_s, buf + 10);
reply_len = -1;
#ifdef CONFIG_TDLS #ifdef CONFIG_TDLS
} else if (os_strncmp(buf, "TDLS_DISCOVER ", 14) == 0) { } else if (os_strncmp(buf, "TDLS_DISCOVER ", 14) == 0) {
if (wpa_supplicant_ctrl_iface_tdls_discover(wpa_s, buf + 14)) if (wpa_supplicant_ctrl_iface_tdls_discover(wpa_s, buf + 14))