From 156604bd07ee60faa323968c71627f1c701b473a Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 1 Nov 2018 23:47:20 -0700 Subject: fixes #772 ineffectual assignment in aio_init --- src/core/aio.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/aio.c b/src/core/aio.c index 215d545c..b67b7467 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -124,10 +124,7 @@ nni_aio_init(nni_aio **aiop, nni_cb cb, void *arg) aio->a_timeout = NNG_DURATION_INFINITE; aio->a_iov = aio->a_iovinl; aio->a_niovalloc = 0; - if (arg == NULL) { - arg = aio; - } - *aiop = aio; + *aiop = aio; return (0); } -- cgit v1.2.3-70-g09d2