Enable specifying no events when registring with the iomux

This commit is contained in:
Nils O. Selåsdal
2015-11-10 21:35:16 +01:00
parent 7d9ebd7211
commit 4ce1c24610
2 changed files with 2 additions and 12 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ static int iomux_select_register_fd(struct IOMux *mux_, struct IOMuxFD *fd)
struct IOMuxSelect *mux = mux_->instance;
int rc;
if ((fd->what & MUX_EV_MASK) == 0 || fd->callback == NULL)
if (fd->callback == NULL)
return EINVAL;
rc = iomux_select_update_events(mux_, fd);