From 69ed759ddf4a97723668fefda5ba458792d67b6b Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 30 Jul 2019 13:01:37 +0200 Subject: [PATCH] cli: remove an unnecessary condition Do not check for password when creating a simple connection object for "nmcli dev wifi connect". This makes no difference in practice. The password is checked for existence later on and the connection instance is created anyway. This just makes things look a bit more consistent. --- clients/cli/devices.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/devices.c b/clients/cli/devices.c index 8abf9ad61a..d36382f85c 100644 --- a/clients/cli/devices.c +++ b/clients/cli/devices.c @@ -3410,7 +3410,7 @@ do_device_wifi_connect (NmCli *nmc, int argc, char **argv) if (!existing_con) { /* If there are some connection data from user, create a connection and * fill them into proper settings. */ - if (con_name || private || bssid2_arr || password || hidden) + if (con_name || private || bssid2_arr || hidden) connection = nm_simple_connection_new (); if (con_name || private) {