aboutsummaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/aio.c5
1 files changed, 1 insertions, 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);
}