treewide: apply errno.cocci

with small manual cleanups for style.
This commit is contained in:
Michal Schmidt
2015-11-09 20:01:06 +01:00
parent b3e3bb19a0
commit e1427b138f
21 changed files with 43 additions and 87 deletions
+1 -2
View File
@@ -88,8 +88,7 @@ static int parse_file(Hashmap *sysctl_options, const char *path, bool ignore_eno
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);
}
p = strstrip(l);