From 07912b6e79cd9e12321f49ccb623590f230c331c Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Tue, 21 Apr 2015 17:29:34 +0200 Subject: [PATCH] cli: remove an extraneous _strip_master_prefix() call verify_master_for_slave() already ensures the returned string has no prefix. --- clients/cli/connections.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clients/cli/connections.c b/clients/cli/connections.c index ed78d14c4..da65afc0a 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -4322,7 +4322,7 @@ complete_slave (NMSettingConnection *s_con, /* Change properties in 'connection' setting */ g_object_set (s_con, - NM_SETTING_CONNECTION_MASTER, checked_master ? checked_master : _strip_master_prefix (master, NULL), + NM_SETTING_CONNECTION_MASTER, checked_master, NULL); g_free (master_ask);