mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-01 02:08:02 +02:00
libnm: don't use local variable in _bond_get_option_or_default()
Brevity is the Soul of Wit.
This commit is contained in:
parent
2c2ed2374f
commit
1ef894f489
1 changed files with 2 additions and 7 deletions
|
|
@ -238,13 +238,8 @@ static const char*
|
|||
_bond_get_option_or_default (NMSettingBond *self,
|
||||
const char *option)
|
||||
{
|
||||
const char *value;
|
||||
|
||||
value = _bond_get_option (self, option);
|
||||
if (!value) {
|
||||
value = _bond_get_option_default (self, option);
|
||||
}
|
||||
return value;
|
||||
return _bond_get_option (self, option)
|
||||
?: _bond_get_option_default (self, option);
|
||||
}
|
||||
|
||||
static const char*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue