diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2015-11-05 13:44:20 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2015-11-09 20:01:06 +0100 |
commit | e1427b138fbf7b7f13bb61187635b882be3ca2b2 (patch) | |
tree | b3ce451e25222b085aee42f70bcd8ae46386642b /src/modules-load | |
parent | b3e3bb19a06795ee1eb3679a839f4687ba99143f (diff) | |
download | systemd-e1427b138fbf7b7f13bb61187635b882be3ca2b2.tar.gz systemd-e1427b138fbf7b7f13bb61187635b882be3ca2b2.tar.bz2 systemd-e1427b138fbf7b7f13bb61187635b882be3ca2b2.zip |
treewide: apply errno.cocci
with small manual cleanups for style.
Diffstat (limited to 'src/modules-load')
-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 b90c50719f..13784763f1 100644 --- a/src/modules-load/modules-load.c +++ b/src/modules-load/modules-load.c @@ -151,8 +151,7 @@ static int apply_file(struct kmod_ctx *ctx, const char *path, bool ignore_enoent if (feof(f)) break; - log_error_errno(errno, "Failed to read file '%s', ignoring: %m", path); - return -errno; + return log_error_errno(errno, "Failed to read file '%s', ignoring: %m", path); } l = strstrip(line); |