summaryrefslogtreecommitdiff
path: root/src/rc-local-generator
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-12-04 18:41:27 +0100
committerLennart Poettering <lennart@poettering.net>2018-12-05 12:52:47 +0100
commitc5df80a06da02b8d652c5154084370205b3ecb85 (patch)
tree5a69d9d04804f2217415a88eb0538e63d11a34dd /src/rc-local-generator
parent278ef0ab3372ab86443c7a216677c4e41dd1c70f (diff)
downloadsystemd-c5df80a06da02b8d652c5154084370205b3ecb85.tar.gz
rc-local-generator: small shortification
Diffstat (limited to 'src/rc-local-generator')
-rw-r--r--src/rc-local-generator/rc-local-generator.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/rc-local-generator/rc-local-generator.c b/src/rc-local-generator/rc-local-generator.c
index 11f18b1173..5b432e6b02 100644
--- a/src/rc-local-generator/rc-local-generator.c
+++ b/src/rc-local-generator/rc-local-generator.c
@@ -21,7 +21,6 @@ static const char *arg_dest = "/tmp";
static int add_symlink(const char *service, const char *where) {
const char *from, *to;
- int r;
assert(service);
assert(where);
@@ -31,8 +30,7 @@ static int add_symlink(const char *service, const char *where) {
(void) mkdir_parents_label(to, 0755);
- r = symlink(from, to);
- if (r < 0) {
+ if (symlink(from, to) < 0) {
if (errno == EEXIST)
return 0;