libnm: small style update to use nm_streq() in _normalize_bond_mode()

This commit is contained in:
Thomas Haller 2020-10-15 10:18:35 +02:00
parent 8dc3f07d34
commit 1dce227a59
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728

View file

@ -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;
}