From: Jouni Malinen Date: Sat, 28 Apr 2012 15:31:01 +0000 (+0300) Subject: Remove unused variable if CONFIG_P2P=y is not used X-Git-Tag: hostap_2_0~706 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f0cc27eb98f7d1af9c64d0752238184cbdb9a24;p=thirdparty%2Fhostap.git Remove unused variable if CONFIG_P2P=y is not used Signed-hostap: Jouni Malinen --- diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c index 0c89d1450..1760dd2e3 100644 --- a/wpa_supplicant/dbus/dbus_new.c +++ b/wpa_supplicant/dbus/dbus_new.c @@ -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);