From: Lennart Poettering Date: Tue, 4 Dec 2018 17:41:27 +0000 (+0100) Subject: rc-local-generator: small shortification X-Git-Tag: v240~133^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c5df80a06da02b8d652c5154084370205b3ecb85;p=thirdparty%2Fsystemd.git rc-local-generator: small shortification --- diff --git a/src/rc-local-generator/rc-local-generator.c b/src/rc-local-generator/rc-local-generator.c index 11f18b1173d..5b432e6b02b 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;