- if (type)
- g_print (_("Warning: 'type' is ignored. "
- "Use 'nmcli connection add \"%s\" ...' instead."),
- type);
-
- if (nm_setting_connection_get_master (s_con)) {
- /* Master already set. */
- if (master) {
- g_set_error_literal (error, NMCLI_ERROR, NMC_RESULT_ERROR_USER_INPUT,
- _("Error: redundant 'master' option."));
- return FALSE;
- }
- return TRUE;
- }
+ if (type)
+ g_print (_("Warning: 'type' is ignored. "
+ "Use 'nmcli connection add \"%s\" ...' instead."),
+ type);