]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
dbus: Do not initialize variable twice
authorJouni Malinen <j@w1.fi>
Tue, 23 Jun 2015 18:14:30 +0000 (21:14 +0300)
committerJouni Malinen <j@w1.fi>
Tue, 23 Jun 2015 18:16:35 +0000 (21:16 +0300)
There is no point in initializing 'success' to FALSE when the actual
value is set just below this.

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

index 20442d6b4a3a191f2cd644ef5ff4908b0973609a..462c713c8a559cc17cea57e3fd2eefea0ce0f880 100644 (file)
@@ -500,7 +500,7 @@ DBusMessage * wpas_dbus_iface_capabilities(DBusMessage *message,
        /* EAP methods */
        eap_methods = eap_get_names_as_string_array(&num_items);
        if (eap_methods) {
-               dbus_bool_t success = FALSE;
+               dbus_bool_t success;
                size_t i = 0;
 
                success = wpa_dbus_dict_append_string_array(