diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2014-04-24 16:02:16 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2014-04-24 16:02:16 -0400 |
commit | da46611254427df42a4011910176d43d8966a340 (patch) | |
tree | 5567a7a140b893aa8194d3c4ccdb380decef369c /src/udev/udev-node.c | |
parent | 2500dbc810d8898c1359c6579715586fffa08a27 (diff) |
src/udev: code cleanup
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'src/udev/udev-node.c')
-rw-r--r-- | src/udev/udev-node.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c index 2dddc7b4b4..e4efd242db 100644 --- a/src/udev/udev-node.c +++ b/src/udev/udev-node.c @@ -286,13 +286,11 @@ static int node_permissions_apply(struct udev_device *dev, bool apply, if ((stats.st_mode & 0777) != (mode & 0777) || stats.st_uid != uid || stats.st_gid != gid) { log_debug("set permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); - ; if((chmod(devnode, mode) !=0 ) || (chown(devnode, uid,gid) !=0)) { - err = -errno; - log_error("FAILED to set permissions %s, %#o, uid=%u, gid=%u" - ,devnode, mode, uid, gid); - goto out; - } + err = -errno; + log_error("FAILED to set permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); + goto out; + } } else { log_debug("preserve permissions %s, %#o, uid=%u, gid=%u", devnode, mode, uid, gid); } |