From 37453b821ae4c9d6dcd3bcaeeb97f1ff95504276 Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Sat, 6 May 2017 18:07:01 +0200 Subject: [PATCH] Minor, remove unnecessary braces for one-liner conditional Signed-off-by: Joachim Nilsson --- io.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/io.c b/io.c index b660d4f..6a865f3 100644 --- a/io.c +++ b/io.c @@ -61,9 +61,8 @@ int uev_io_init(uev_ctx_t *ctx, uev_t *w, uev_cb_t *cb, void *arg, int fd, int e int uev_io_set(uev_t *w, int fd, int events) { - if ((events & UEV_ONESHOT) && w->active) { + if ((events & UEV_ONESHOT) && w->active) return uev_watcher_rearm(w); - } /* Ignore any errors, only to clean up anything lingering ... */ uev_io_stop(w);