diff options
| author | Seyed Pouria Mousavizadeh Tehrani <info@spmzt.net> | 2025-05-16 16:19:56 +0000 |
|---|---|---|
| committer | Lexi Winter <ivy@FreeBSD.org> | 2025-05-16 20:29:47 +0000 |
| commit | 95c414dd27c26285cdd6ed4288832b3db0ea6628 (patch) | |
| tree | 83b247edfed531a38b4ea6f8b873458b22c38f5c /sys | |
| parent | e647a222a1a74bd3b2bbdd7903fb30e4e30b6b09 (diff) | |
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/netgraph/ng_sample.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c index 6647247fc634..5cbd9bbab41a 100644 --- a/sys/netgraph/ng_sample.c +++ b/sys/netgraph/ng_sample.c @@ -271,7 +271,7 @@ ng_xxx_rcvmsg(node_p node, item_p item, hook_p lasthook) struct ngxxxstat *stats; NG_MKRESPONSE(resp, msg, sizeof(*stats), M_NOWAIT); - if (!resp) { + if (resp == NULL) { error = ENOMEM; break; } @@ -320,7 +320,7 @@ ng_xxx_rcvmsg(node_p node, item_p item, hook_p lasthook) * 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; |
