From 1d4fe3bcbcf15311f56b12235609cc153a24ac40 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sat, 22 Mar 2014 16:24:57 +0200 Subject: [PATCH] Remove unnecessary parameter validation This is dead code since this helper function is always called with non-NULL pointer. Signed-off-by: Jouni Malinen --- src/ap/ctrl_iface_ap.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/ap/ctrl_iface_ap.c b/src/ap/ctrl_iface_ap.c index 11351c4bc..e1020a67e 100644 --- a/src/ap/ctrl_iface_ap.c +++ b/src/ap/ctrl_iface_ap.c @@ -469,9 +469,6 @@ int hostapd_parse_csa_settings(const char *pos, { char *end; - if (!settings) - return -1; - os_memset(settings, 0, sizeof(*settings)); settings->cs_count = strtol(pos, &end, 10); if (pos == end) {