git: 9f290050a6cd - stable/13 - ng_sample: fix style nits
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 21 May 2025 00:30:07 UTC
The branch stable/13 has been updated by ivy:
URL: https://cgit.FreeBSD.org/src/commit/?id=9f290050a6cda849783d4d58e8f9a3307dc3792e
commit 9f290050a6cda849783d4d58e8f9a3307dc3792e
Author: Seyed Pouria Mousavizadeh Tehrani <info@spmzt.net>
AuthorDate: 2025-05-16 16:19:56 +0000
Commit: Lexi Winter <ivy@FreeBSD.org>
CommitDate: 2025-05-20 21:03:29 +0000
ng_sample: fix style nits
MFC after: 3 days
Reviewed by: ivy, kp, des
Approved by: des (mentor)
Differential Revision: https://reviews.freebsd.org/D50343
(cherry picked from commit 95c414dd27c26285cdd6ed4288832b3db0ea6628)
---
sys/netgraph/ng_sample.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/netgraph/ng_sample.c b/sys/netgraph/ng_sample.c
index 54b7f2026fa1..06c6785e6103 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;