service: asynchronous_close() already checks for negative parameters, no need to...
authorLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 14:17:02 +0000 (16:17 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 21 Aug 2014 15:24:21 +0000 (17:24 +0200)
src/core/service.c

index 887b1c8..008e814 100644 (file)
@@ -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);
 }