]> err.no Git - systemd/commitdiff
service: drop redundant check in sysv_translate_facility
authorLennart Poettering <lennart@poettering.net>
Fri, 4 Mar 2011 13:54:15 +0000 (16:54 +0300)
committerLennart Poettering <lennart@poettering.net>
Sun, 6 Mar 2011 22:28:39 +0000 (23:28 +0100)
We check for _r with an assert in the function header anyway, no need to
check it again.

src/service.c

index 85175793428f77b8d7ac8261a40dc11490329e82..017b546d8cca0dacb6eb527d0fe0ec8095f2cc3b 100644 (file)
@@ -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;
 }