summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-08-21 16:17:02 +0200
committerLennart Poettering <lennart@poettering.net>2014-08-21 17:24:21 +0200
commitabb4c1cc0161cc6b371ee7ea2550df17a3bfc21e (patch)
treebd802768701d67748edcb90133f3ef30e4edc7e2 /src/core
parent4c94096027f21d4ed0efe991534a926d39d52369 (diff)
service: asynchronous_close() already checks for negative parameters, no need to duplicate that
Diffstat (limited to 'src/core')
-rw-r--r--src/core/service.c3
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);
}