aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/wps_supplicant.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2014-12-13 17:50:16 (GMT)
committerJouni Malinen <j@w1.fi>2014-12-14 00:28:03 (GMT)
commitf77cedc11a002271bd8b4e95f18b9a1a7cafe610 (patch)
tree27d434829303b8e6246750bd4015d1c0907f7636 /wpa_supplicant/wps_supplicant.c
parentb37dac50a26dd33919d7dd694504f7e8df2df1cc (diff)
downloadhostap-f77cedc11a002271bd8b4e95f18b9a1a7cafe610.zip
hostap-f77cedc11a002271bd8b4e95f18b9a1a7cafe610.tar.gz
hostap-f77cedc11a002271bd8b4e95f18b9a1a7cafe610.tar.bz2
WPS ER: Remove unnecessary return value
wps_er_deinit() cannot fail and it does not return anything, so neither should wpas_wps_er_stop(). Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/wps_supplicant.c')
-rw-r--r--wpa_supplicant/wps_supplicant.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/wpa_supplicant/wps_supplicant.c b/wpa_supplicant/wps_supplicant.c
index d8ceb5b..0359cde 100644
--- a/wpa_supplicant/wps_supplicant.c
+++ b/wpa_supplicant/wps_supplicant.c
@@ -1809,13 +1809,12 @@ int wpas_wps_er_start(struct wpa_supplicant *wpa_s, const char *filter)
}
-int wpas_wps_er_stop(struct wpa_supplicant *wpa_s)
+void wpas_wps_er_stop(struct wpa_supplicant *wpa_s)
{
#ifdef CONFIG_WPS_ER
wps_er_deinit(wpa_s->wps_er, NULL, NULL);
wpa_s->wps_er = NULL;
#endif /* CONFIG_WPS_ER */
- return 0;
}