service: asynchronous_close() already checks for negative parameters, no need to duplicate that

This commit is contained in:
Lennart Poettering 2014-08-21 16:17:02 +02:00
parent 4c94096027
commit abb4c1cc01

View 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);
}