From 1dce227a59dce0df411a9fd57312f94f5e6f2ef8 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Thu, 15 Oct 2020 10:18:35 +0200 Subject: [PATCH] libnm: small style update to use nm_streq() in _normalize_bond_mode() --- libnm-core/nm-connection.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libnm-core/nm-connection.c b/libnm-core/nm-connection.c index 10bfe7b839..84a0b34835 100644 --- a/libnm-core/nm-connection.c +++ b/libnm-core/nm-connection.c @@ -1065,7 +1065,8 @@ _normalize_bond_mode(NMConnection *self) if (mode_int != -1) { const char *mode_new = nm_utils_bond_mode_int_to_string(mode_int); - if (g_strcmp0(mode_new, mode) != 0) { + + if (!nm_streq0(mode_new, mode)) { nm_setting_bond_add_option(s_bond, NM_SETTING_BOND_OPTION_MODE, mode_new); return TRUE; }