summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2019-07-30 13:01:37 +0200
committerLubomir Rintel <lkundrak@v3.sk>2019-08-02 23:00:26 +0200
commit69ed759ddf4a97723668fefda5ba458792d67b6b (patch)
treea6f9e5e52e06ca63b10c6885bcd27fa82227bf67
parentcc3681c96cdec23dd52cbc653cf0a00c6a289101 (diff)
downloadNetworkManager-69ed759ddf4a97723668fefda5ba458792d67b6b.tar.gz
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.
-rw-r--r--clients/cli/devices.c2
1 files changed, 1 insertions, 1 deletions
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) {