diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-08-21 16:17:02 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-08-21 17:24:21 +0200 |
commit | abb4c1cc0161cc6b371ee7ea2550df17a3bfc21e (patch) | |
tree | bd802768701d67748edcb90133f3ef30e4edc7e2 | |
parent | 4c94096027f21d4ed0efe991534a926d39d52369 (diff) |
service: asynchronous_close() already checks for negative parameters, no need to duplicate that
-rw-r--r-- | src/core/service.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/core/service.c b/src/core/service.c index 887b1c8514..008e81437d 100644 --- a/src/core/service.c +++ b/src/core/service.c @@ -180,9 +180,6 @@ static int service_set_main_pid(Service *s, pid_t pid) { static void service_close_socket_fd(Service *s) { assert(s); - if (s->socket_fd < 0) - return; - s->socket_fd = asynchronous_close(s->socket_fd); } |