Remove extra M_ZERO from NG_MKRESPONSE() argument.

NG_MKRESPONSE() sets M_ZERO by itself.

Submitted by:	Dmitry Luhtionov <dmitryluhtionov@gmail.com>
MFC after:	1 week
This commit is contained in:
Alexander Motin 2018-08-20 14:35:54 +00:00
parent a4671335c5
commit 8805f3d7be

View File

@ -2665,7 +2665,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook)
IDHASH_RLOCK(); IDHASH_RLOCK();
/* Get response struct. */ /* Get response struct. */
NG_MKRESPONSE(resp, msg, sizeof(*nl) + NG_MKRESPONSE(resp, msg, sizeof(*nl) +
(V_ng_nodes * sizeof(struct nodeinfo)), M_NOWAIT | M_ZERO); (V_ng_nodes * sizeof(struct nodeinfo)), M_NOWAIT);
if (resp == NULL) { if (resp == NULL) {
IDHASH_RUNLOCK(); IDHASH_RUNLOCK();
error = ENOMEM; error = ENOMEM;