dbus: Remove unused default string for bridge_ifname

wpa_s->bridge_ifname is an array and cannot be NULL.

Signed-hostap: Jouni Malinen <j@w1.fi>
This commit is contained in:
Jouni Malinen 2011-11-13 20:54:44 +02:00
parent 9482426ede
commit c660b0c257

View file

@ -2490,9 +2490,7 @@ dbus_bool_t wpas_dbus_getter_bridge_ifname(DBusMessageIter *iter,
void *user_data)
{
struct wpa_supplicant *wpa_s = user_data;
const char *bridge_ifname;
bridge_ifname = wpa_s->bridge_ifname ? wpa_s->bridge_ifname : "";
const char *bridge_ifname = wpa_s->bridge_ifname;
return wpas_dbus_simple_property_getter(iter, DBUS_TYPE_STRING,
&bridge_ifname, error);
}