aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJouni Malinen <j@w1.fi>2017-01-08 10:43:33 (GMT)
committerJouni Malinen <j@w1.fi>2017-01-08 10:43:33 (GMT)
commit9d6eaad6b8d1caeaa9a27c7486018c624c8ce16d (patch)
tree76322f1d71bc68b284a15ee8ea818d662d7c0b4b
parent0f9b4a0f1dd20ad2179b1eeeef269294f9d5893f (diff)
downloadhostap-9d6eaad6b8d1caeaa9a27c7486018c624c8ce16d.zip
hostap-9d6eaad6b8d1caeaa9a27c7486018c624c8ce16d.tar.gz
hostap-9d6eaad6b8d1caeaa9a27c7486018c624c8ce16d.tar.bz2
bgscan: Remove unnecessary NULL check
bgscan_init() is the only caller for the init() function and the parameters argument is never NULL. Signed-off-by: Jouni Malinen <j@w1.fi>
-rw-r--r--wpa_supplicant/bgscan_learn.c3
-rw-r--r--wpa_supplicant/bgscan_simple.c3
2 files changed, 0 insertions, 6 deletions
diff --git a/wpa_supplicant/bgscan_learn.c b/wpa_supplicant/bgscan_learn.c
index a320cc4..cb732f7 100644
--- a/wpa_supplicant/bgscan_learn.c
+++ b/wpa_supplicant/bgscan_learn.c
@@ -320,9 +320,6 @@ static int bgscan_learn_get_params(struct bgscan_learn_data *data,
{
const char *pos;
- if (params == NULL)
- return 0;
-
data->short_interval = atoi(params);
pos = os_strchr(params, ':');
diff --git a/wpa_supplicant/bgscan_simple.c b/wpa_supplicant/bgscan_simple.c
index bae72b9..41a26df 100644
--- a/wpa_supplicant/bgscan_simple.c
+++ b/wpa_supplicant/bgscan_simple.c
@@ -80,9 +80,6 @@ static int bgscan_simple_get_params(struct bgscan_simple_data *data,
{
const char *pos;
- if (params == NULL)
- return 0;
-
data->short_interval = atoi(params);
pos = os_strchr(params, ':');