diff options
author | Lennart Poettering <lennart@poettering.net> | 2011-03-04 16:54:15 +0300 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2011-03-06 23:28:39 +0100 |
commit | b4353094e5097c0cb149b5adcffe2a6ba9240283 (patch) | |
tree | 70630f831172c0615b750e4f72436bbe3a434a8a | |
parent | fc7ac59412742e2ef0638e86070c33afd579848e (diff) |
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.
-rw-r--r-- | src/service.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/service.c b/src/service.c index 8517579342..017b546d8c 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; } |