summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-rtnl
diff options
context:
space:
mode:
authorMichal Schmidt <mschmidt@redhat.com>2014-11-28 19:13:53 +0100
committerMichal Schmidt <mschmidt@redhat.com>2014-11-28 19:17:24 +0100
commit8d3d7072e609ef0e0fb37e1d19a29307d58146c3 (patch)
tree96a7628cd8bbf315bd9ca55e87eb2dd3cb50e054 /src/libsystemd/sd-rtnl
parentf647962d64e844689f3e2acfce6102fc47e76df2 (diff)
treewide: a few more log_*_errno + return simplifications
The one in tmpfiles.c:create_item() even looks like it fixes a bug.
Diffstat (limited to 'src/libsystemd/sd-rtnl')
-rw-r--r--src/libsystemd/sd-rtnl/rtnl-util.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/libsystemd/sd-rtnl/rtnl-util.c b/src/libsystemd/sd-rtnl/rtnl-util.c
index bd97ba9ae7..4521742b8e 100644
--- a/src/libsystemd/sd-rtnl/rtnl-util.c
+++ b/src/libsystemd/sd-rtnl/rtnl-util.c
@@ -157,11 +157,9 @@ bool rtnl_message_type_is_addr(uint16_t type) {
}
int rtnl_log_parse_error(int r) {
- log_error_errno(r, "Failed to parse netlink message: %m");
- return r;
+ return log_error_errno(r, "Failed to parse netlink message: %m");
}
int rtnl_log_create_error(int r) {
- log_error_errno(r, "Failed to create netlink message: %m");
- return r;
+ return log_error_errno(r, "Failed to create netlink message: %m");
}