]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Remove unused variable if CONFIG_P2P=y is not used
authorJouni Malinen <j@w1.fi>
Sat, 28 Apr 2012 15:31:01 +0000 (18:31 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 28 Apr 2012 15:31:01 +0000 (18:31 +0300)
Signed-hostap: Jouni Malinen <j@w1.fi>

wpa_supplicant/dbus/dbus_new.c

index 0c89d145062bb0b58f0ea4653962552651980635..1760dd2e324488ea3c6e32625c43e0f814310b3c 100644 (file)
@@ -2122,11 +2122,11 @@ int wpas_dbus_unregister_network(struct wpa_supplicant *wpa_s, int nid)
        struct wpas_dbus_priv *ctrl_iface;
        char net_obj_path[WPAS_DBUS_OBJECT_PATH_MAX];
        int ret;
+#ifdef CONFIG_P2P
        struct wpa_ssid *ssid;
 
        ssid = wpa_config_get_network(wpa_s->conf, nid);
 
-#ifdef CONFIG_P2P
        /* If it is a persistent group unregister it as such */
        if (ssid && network_is_persistent_group(ssid))
                return wpas_dbus_unregister_persistent_group(wpa_s, nid);