From 9d6eaad6b8d1caeaa9a27c7486018c624c8ce16d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 8 Jan 2017 12:43:33 +0200 Subject: [PATCH] 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 --- wpa_supplicant/bgscan_learn.c | 3 --- wpa_supplicant/bgscan_simple.c | 3 --- 2 files changed, 6 deletions(-) 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, ':');