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
@@ -150,8 +150,7 @@ int manager_enumerate_machines(Manager *m) {
if (errno == ENOENT)
return 0;
log_error_errno(errno, "Failed to open /run/systemd/machines: %m");
return -errno;
return log_error_errno(errno, "Failed to open /run/systemd/machines: %m");
}
FOREACH_DIRENT(de, d, return -errno) {