aboutsummaryrefslogtreecommitdiffstats
path: root/wpa_supplicant/bgscan.c
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 12:43:48 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 12:44:34 (GMT)
commit2901bc2725aca3f465856ae5520eb4b4fa6ebe54 (patch)
tree2704f3b1ed2f041d95aa59c5fd405a9dc8a58cc9 /wpa_supplicant/bgscan.c
parent9d6eaad6b8d1caeaa9a27c7486018c624c8ce16d (diff)
downloadhostap-2901bc2725aca3f465856ae5520eb4b4fa6ebe54.zip
hostap-2901bc2725aca3f465856ae5520eb4b4fa6ebe54.tar.gz
hostap-2901bc2725aca3f465856ae5520eb4b4fa6ebe54.tar.bz2
bgscan: Remove unnecessary NULL check
The name argument to bgscan_init() cannot be NULL since the only caller already checks this before the call. Signed-off-by: Jouni Malinen <j@w1.fi>
Diffstat (limited to 'wpa_supplicant/bgscan.c')
-rw-r--r--wpa_supplicant/bgscan.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/wpa_supplicant/bgscan.c b/wpa_supplicant/bgscan.c
index 798b43c..1ea6401 100644
--- a/wpa_supplicant/bgscan.c
+++ b/wpa_supplicant/bgscan.c
@@ -34,8 +34,6 @@ int bgscan_init(struct wpa_supplicant *wpa_s, struct wpa_ssid *ssid,
const struct bgscan_ops *ops = NULL;
bgscan_deinit(wpa_s);
- if (name == NULL)
- return -1;
params = os_strchr(name, ':');
if (params == NULL) {