From: Jouni Malinen Date: Sun, 8 Jan 2017 10:43:33 +0000 (+0200) Subject: bgscan: Remove unnecessary NULL check X-Git-Tag: hostap_2_7~1786 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9d6eaad6b8d1caeaa9a27c7486018c624c8ce16d;p=thirdparty%2Fhostap.git 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 --- diff --git a/wpa_supplicant/bgscan_learn.c b/wpa_supplicant/bgscan_learn.c index a320cc430..cb732f709 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 bae72b934..41a26df0d 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, ':');