diff options
author | Thomas Haller <thaller@redhat.com> | 2020-10-15 10:18:35 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-10-19 23:18:43 +0200 |
commit | 1dce227a59dce0df411a9fd57312f94f5e6f2ef8 (patch) | |
tree | bebbf3826438f58be8567ffe100135187be3280b | |
parent | 8dc3f07d34d74e37b06461bf311a57df037ca50c (diff) | |
download | NetworkManager-1dce227a59dce0df411a9fd57312f94f5e6f2ef8.tar.gz |
libnm: small style update to use nm_streq() in _normalize_bond_mode()
-rw-r--r-- | libnm-core/nm-connection.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |