mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-12 09:17:44 +03:00
sd-netlink: reduce indentation levels a bit
This commit is contained in:
parent
13ec9f103b
commit
baf78f1a51
@ -419,20 +419,19 @@ static int process_match(sd_netlink *rtnl, sd_netlink_message *m) {
|
||||
return r;
|
||||
|
||||
LIST_FOREACH(match_callbacks, c, rtnl->match_callbacks) {
|
||||
if (type == c->type) {
|
||||
slot = container_of(c, sd_netlink_slot, match_callback);
|
||||
if (type != c->type)
|
||||
continue;
|
||||
|
||||
r = c->callback(rtnl, m, slot->userdata);
|
||||
if (r != 0) {
|
||||
if (r < 0)
|
||||
log_debug_errno(r, "sd-netlink: match callback %s%s%sfailed: %m",
|
||||
slot->description ? "'" : "",
|
||||
strempty(slot->description),
|
||||
slot->description ? "' " : "");
|
||||
slot = container_of(c, sd_netlink_slot, match_callback);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
r = c->callback(rtnl, m, slot->userdata);
|
||||
if (r < 0)
|
||||
log_debug_errno(r, "sd-netlink: match callback %s%s%sfailed: %m",
|
||||
slot->description ? "'" : "",
|
||||
strempty(slot->description),
|
||||
slot->description ? "' " : "");
|
||||
if (r != 0)
|
||||
break;
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user