From b4353094e5097c0cb149b5adcffe2a6ba9240283 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Fri, 4 Mar 2011 16:54:15 +0300 Subject: [PATCH] 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. --- src/service.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; } -- 2.39.5