]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unnecessary ctrl_iface command check
authorJouni Malinen <j@w1.fi>
Sun, 7 Dec 2014 21:43:21 +0000 (23:43 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 8 Dec 2014 09:42:06 +0000 (11:42 +0200)
MESH_GROUP_REMOVE always passes in the cmd pointer, so this cannot
really be NULL.

Signed-off-by: Jouni Malinen <j@w1.fi>
wpa_supplicant/ctrl_iface.c

index 33da50ed4ad91a800be29e980106f91e5066db9f..6bc9d88306a0e1ce530eb536b4ff49ab444af659 100644 (file)
@@ -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
         */