From 6021ddb3496d60936f0b04d96054064b9916f757 Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 2 Apr 2019 08:59:04 +0200 Subject: secret-agent-simple: get rid of an extra variable --- clients/common/nm-secret-agent-simple.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/clients/common/nm-secret-agent-simple.c b/clients/common/nm-secret-agent-simple.c index 00a47d2644..c55aeed3a9 100644 --- a/clients/common/nm-secret-agent-simple.c +++ b/clients/common/nm-secret-agent-simple.c @@ -743,7 +743,6 @@ try_spawn_vpn_auth_helper (RequestData *request, NMSettingVpn *s_vpn = nm_connection_get_setting_vpn (request->connection); gs_unref_ptrarray GPtrArray *auth_dialog_argv = NULL; NMVpnPluginInfo *plugin_info; - gboolean supports_external; const char *s; GPid auth_dialog_pid; int auth_dialog_in_fd; @@ -762,8 +761,7 @@ try_spawn_vpn_auth_helper (RequestData *request, return FALSE; s = nm_vpn_plugin_info_lookup_property (plugin_info, "GNOME", "supports-external-ui-mode"); - supports_external = _nm_utils_ascii_str_to_bool (s, FALSE); - if (!supports_external) + if (!_nm_utils_ascii_str_to_bool (s, FALSE)) return FALSE; auth_dialog_argv = g_ptr_array_new (); -- cgit v1.2.1