mirror of
https://github.com/systemd/systemd.git
synced 2026-08-04 15:10:33 +00:00
service: asynchronous_close() already checks for negative parameters, no need to duplicate that
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user