mirror of
https://github.com/systemd/systemd.git
synced 2024-10-28 03:25:31 +03:00
networkd: fix confusion from missing braces
Fixup for 76800848f2
'networkd: link - degrade failed UP to warning'.
This commit is contained in:
parent
b629d09842
commit
58b129170c
@ -1056,16 +1056,14 @@ static int link_up_handler(sd_rtnl *rtnl, sd_rtnl_message *m, void *userdata) {
|
||||
return 1;
|
||||
|
||||
r = sd_rtnl_message_get_errno(m);
|
||||
if (r < 0)
|
||||
if (r >= 0)
|
||||
link_update_flags(link, link->flags | IFF_UP);
|
||||
else
|
||||
log_struct_link(LOG_WARNING, link,
|
||||
"MESSAGE=%s: could not bring up interface: %s",
|
||||
link->ifname, strerror(-r),
|
||||
"ERRNO=%d", -r,
|
||||
NULL);
|
||||
return 1;
|
||||
|
||||
link_update_flags(link, link->flags | IFF_UP);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user