mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-05-05 08:48:07 +02:00
trivial: simplify a condition
This commit is contained in:
parent
e07383f3de
commit
6d688f9c87
1 changed files with 3 additions and 7 deletions
|
|
@ -857,14 +857,10 @@ refresh_object (NMPlatform *platform, struct nl_object *object, int nle)
|
|||
|
||||
hack_empty_master_iff_lower_up (platform, kernel_object);
|
||||
|
||||
if (cached_object) {
|
||||
if (cached_object)
|
||||
nl_cache_remove (cached_object);
|
||||
nle = nl_cache_add (cache, kernel_object);
|
||||
g_return_val_if_fail (!nle, 0);
|
||||
} else {
|
||||
nle = nl_cache_add (cache, kernel_object);
|
||||
g_return_val_if_fail (!nle, FALSE);
|
||||
}
|
||||
nle = nl_cache_add (cache, kernel_object);
|
||||
g_return_val_if_fail (!nle, FALSE);
|
||||
|
||||
announce_object (platform, kernel_object, cached_object ? CHANGED : ADDED);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue