Revert semantic changes for fd_notify_on_*
diff --git a/src/core/lib/iomgr/ev_epoll1_linux.cc b/src/core/lib/iomgr/ev_epoll1_linux.cc
index e8ee5c4..86a0243 100644
--- a/src/core/lib/iomgr/ev_epoll1_linux.cc
+++ b/src/core/lib/iomgr/ev_epoll1_linux.cc
@@ -386,27 +386,15 @@
}
static void fd_notify_on_read(grpc_fd* fd, grpc_closure* closure) {
- if (closure != nullptr) {
- fd->read_closure->NotifyOn(closure);
- } else {
- fd->read_closure->SetReady();
- }
+ fd->read_closure->NotifyOn(closure);
}
static void fd_notify_on_write(grpc_fd* fd, grpc_closure* closure) {
- if (closure != nullptr) {
- fd->write_closure->NotifyOn(closure);
- } else {
- fd->write_closure->SetReady();
- }
+ fd->write_closure->NotifyOn(closure);
}
static void fd_notify_on_error(grpc_fd* fd, grpc_closure* closure) {
- if (closure != nullptr) {
- fd->error_closure->NotifyOn(closure);
- } else {
- fd->error_closure->SetReady();
- }
+ fd->error_closure->NotifyOn(closure);
}
static void fd_become_readable(grpc_fd* fd, grpc_pollset* notifier) {