]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
control: Don't log eloop errors when freeing
authorRoy Marples <roy@marples.name>
Fri, 12 Nov 2021 14:41:24 +0000 (14:41 +0000)
committerRoy Marples <roy@marples.name>
Fri, 12 Nov 2021 14:41:24 +0000 (14:41 +0000)
We might not be actively listening to or awaiting writes from the fd.

src/control.c

index 4d768d887b9f956c08fa589d37028f9c21166cc4..039fe504468b6a47b3b7182a9182c01663cc4898 100644 (file)
@@ -84,8 +84,7 @@ control_free(struct fd_list *fd)
                fd->ctx->ps_control_client = NULL;
 #endif
 
-       if (eloop_event_remove_writecb(fd->ctx->eloop, fd->fd) == -1)
-               logerr(__func__);
+       eloop_event_remove_writecb(fd->ctx->eloop, fd->fd);
        TAILQ_REMOVE(&fd->ctx->control_fds, fd, next);
        control_queue_free(fd);
        free(fd);