diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 19:13:53 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2014-11-28 19:17:24 +0100 |
commit | 8d3d7072e609ef0e0fb37e1d19a29307d58146c3 (patch) | |
tree | 96a7628cd8bbf315bd9ca55e87eb2dd3cb50e054 /src/modules-load/modules-load.c | |
parent | f647962d64e844689f3e2acfce6102fc47e76df2 (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/modules-load/modules-load.c')
-rw-r--r-- | src/modules-load/modules-load.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules-load/modules-load.c b/src/modules-load/modules-load.c index 1fd01adbe4..4dbacd13dc 100644 --- a/src/modules-load/modules-load.c +++ b/src/modules-load/modules-load.c @@ -139,8 +139,7 @@ static int apply_file(struct kmod_ctx *ctx, const char *path, bool ignore_enoent if (ignore_enoent && r == -ENOENT) return 0; - log_error_errno(r, "Failed to open %s, ignoring: %m", path); - return r; + return log_error_errno(r, "Failed to open %s, ignoring: %m", path); } log_debug("apply: %s", path); |