From f4b4ddfdd962cc1afea9dc3965bae4e5d8be8f5c Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 30 May 2016 17:40:05 +0300 Subject: [PATCH] D-Bus: Remove unused wpas_dbus_signal_p2p_group_started() parameter The ssid pointer was not used. Signed-off-by: Jouni Malinen --- wpa_supplicant/dbus/dbus_new.c | 2 -- wpa_supplicant/dbus/dbus_new.h | 2 -- wpa_supplicant/notify.c | 2 +- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/wpa_supplicant/dbus/dbus_new.c b/wpa_supplicant/dbus/dbus_new.c index db83b3e1c..0263b2cf4 100644 --- a/wpa_supplicant/dbus/dbus_new.c +++ b/wpa_supplicant/dbus/dbus_new.c @@ -1254,12 +1254,10 @@ static void peer_groups_changed(struct wpa_supplicant *wpa_s) * irrespective of the role (client/GO) of the current device * * @wpa_s: %wpa_supplicant network interface data - * @ssid: SSID object * @client: this device is P2P client * @persistent: 0 - non persistent group, 1 - persistent group */ void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, - const struct wpa_ssid *ssid, int client, int persistent) { DBusMessage *msg; diff --git a/wpa_supplicant/dbus/dbus_new.h b/wpa_supplicant/dbus/dbus_new.h index 9b4ad0902..d64fceef7 100644 --- a/wpa_supplicant/dbus/dbus_new.h +++ b/wpa_supplicant/dbus/dbus_new.h @@ -190,7 +190,6 @@ void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s, const u8 *src, u16 dev_passwd_id, u8 go_intent); void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, - const struct wpa_ssid *ssid, int client, int persistent); void wpas_dbus_signal_p2p_group_formation_failure(struct wpa_supplicant *wpa_s, const char *reason); @@ -401,7 +400,6 @@ static inline void wpas_dbus_signal_p2p_go_neg_req(struct wpa_supplicant *wpa_s, static inline void wpas_dbus_signal_p2p_group_started(struct wpa_supplicant *wpa_s, - const struct wpa_ssid *ssid, int client, int persistent) { } diff --git a/wpa_supplicant/notify.c b/wpa_supplicant/notify.c index 9268e446b..67e36ae34 100644 --- a/wpa_supplicant/notify.c +++ b/wpa_supplicant/notify.c @@ -674,7 +674,7 @@ void wpas_notify_p2p_group_started(struct wpa_supplicant *wpa_s, /* Notify a group has been started */ wpas_dbus_register_p2p_group(wpa_s, ssid); - wpas_dbus_signal_p2p_group_started(wpa_s, ssid, client, persistent); + wpas_dbus_signal_p2p_group_started(wpa_s, client, persistent); }