From: Jouni Malinen Date: Sun, 7 Dec 2014 21:43:21 +0000 (+0200) Subject: Remove unnecessary ctrl_iface command check X-Git-Tag: hostap_2_4~888 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49328f075640bb40e37ad2cbb844717d96b4a576;p=thirdparty%2Fhostap.git Remove unnecessary ctrl_iface command check MESH_GROUP_REMOVE always passes in the cmd pointer, so this cannot really be NULL. Signed-off-by: Jouni Malinen --- diff --git a/wpa_supplicant/ctrl_iface.c b/wpa_supplicant/ctrl_iface.c index 33da50ed4..6bc9d8830 100644 --- a/wpa_supplicant/ctrl_iface.c +++ b/wpa_supplicant/ctrl_iface.c @@ -2466,12 +2466,6 @@ static int wpa_supplicant_ctrl_iface_mesh_group_add( static int wpa_supplicant_ctrl_iface_mesh_group_remove( struct wpa_supplicant *wpa_s, char *cmd) { - if (!cmd) { - wpa_printf(MSG_ERROR, - "CTRL_IFACE: MESH_GROUP_REMOVE ifname cannot be empty"); - return -1; - } - /* * TODO: Support a multiple mesh and other iface type combinations */