From: Lennart Poettering Date: Fri, 4 Mar 2011 13:54:15 +0000 (+0300) Subject: service: drop redundant check in sysv_translate_facility X-Git-Tag: v20~17 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4353094e5097c0cb149b5adcffe2a6ba9240283;p=systemd service: drop redundant check in sysv_translate_facility We check for _r with an assert in the function header anyway, no need to check it again. --- diff --git a/src/service.c b/src/service.c index 85175793..017b546d 100644 --- a/src/service.c +++ b/src/service.c @@ -345,9 +345,7 @@ static int sysv_translate_facility(const char *name, const char *filename, char return -ENOMEM; finish: - - if (_r) - *_r = r; + *_r = r; return 1; }