Minor simplification, result is never changed

Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
Joachim Nilsson committed 2017-11-10 22:25:12 +01:00
1 parent 2f9cce9150
commit 1037eed481
1 file changed
+2 -2
+2 -2
View File
@@ -270,7 +270,7 @@ int uev_exit(uev_ctx_t *ctx)
*/ */
int uev_run(uev_ctx_t *ctx, int flags) int uev_run(uev_ctx_t *ctx, int flags)
{ {
int result = 0, timeout = -1; int timeout = -1;
uev_t *w; uev_t *w;
if (!ctx || ctx->fd < 0) { if (!ctx || ctx->fd < 0) {
@@ -415,7 +415,7 @@ int uev_run(uev_ctx_t *ctx, int flags)
break; break;
} }
return result; return 0;
} }
/** /**