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
@@ -263,8 +263,7 @@ static int node_permissions_apply(struct udev_device *dev, bool apply,
mode |= S_IFCHR;
if (lstat(devnode, &stats) != 0) {
err = -errno;
log_debug_errno(errno, "can not stat() node '%s' (%m)", devnode);
err = log_debug_errno(errno, "can not stat() node '%s' (%m)", devnode);
goto out;
}