mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-01 00:10:11 +01:00
libnm: small style update to use nm_streq() in _normalize_bond_mode()
This commit is contained in:
parent
8dc3f07d34
commit
1dce227a59
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue