diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c --- a/sys/netgraph/ng_sample.c +++ b/sys/netgraph/ng_sample.c @@ -271,7 +271,7 @@ struct ngxxxstat *stats; NG_MKRESPONSE(resp, msg, sizeof(*stats), M_NOWAIT); - if (!resp) { + if (resp == NULL) { error = ENOMEM; break; } @@ -320,7 +320,7 @@ * in the connect() method. */ static int -ng_xxx_rcvdata(hook_p hook, item_p item ) +ng_xxx_rcvdata(hook_p hook, item_p item) { const xxx_p xxxp = NG_NODE_PRIVATE(NG_HOOK_NODE(hook)); int chan = -2;