From d347548816885c866e93e3ebab96f2223d93419c Mon Sep 17 00:00:00 2001 From: QXSoftware Date: Sun, 9 Sep 2018 21:21:40 +0800 Subject: remove redundant zero memset --- src/core/aio.c | 1 - 1 file changed, 1 deletion(-) (limited to 'src') diff --git a/src/core/aio.c b/src/core/aio.c index 15abfe8d..215d545c 100644 --- a/src/core/aio.c +++ b/src/core/aio.c @@ -116,7 +116,6 @@ nni_aio_init(nni_aio **aiop, nni_cb cb, void *arg) if ((aio = NNI_ALLOC_STRUCT(aio)) == NULL) { return (NNG_ENOMEM); } - memset(aio, 0, sizeof(*aio)); if ((rv = nni_task_init(&aio->a_task, NULL, cb, arg)) != 0) { NNI_FREE_STRUCT(aio); return (rv); -- cgit v1.2.3-70-g09d2