From 2901bc2725aca3f465856ae5520eb4b4fa6ebe54 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 8 Jan 2017 14:43:48 +0200 Subject: [PATCH] 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 --- wpa_supplicant/bgscan.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/wpa_supplicant/bgscan.c b/wpa_supplicant/bgscan.c index 798b43c3f..1ea640114 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) {