diff options
author | mav <mav@FreeBSD.org> | 2008-11-22 16:03:18 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2008-11-22 16:03:18 +0000 |
commit | 5d12d947b3132697a181a27bc6e2e2134e05d2bc (patch) | |
tree | 4260f918530607a4e195c3122020ff1a13952201 /sys/netgraph | |
parent | 15aca58a53ab41a12025fb47a3c20f801e67c91d (diff) | |
download | FreeBSD-src-5d12d947b3132697a181a27bc6e2e2134e05d2bc.zip FreeBSD-src-5d12d947b3132697a181a27bc6e2e2134e05d2bc.tar.gz |
Remove unneeded NULL check. At first msg can't be null here and and at second
NG_FREE_MSG() also checks it.
Found with: Coverity Prevent(tm)
Diffstat (limited to 'sys/netgraph')
-rw-r--r-- | sys/netgraph/ng_base.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c index 6a0ce88..263469a 100644 --- a/sys/netgraph/ng_base.c +++ b/sys/netgraph/ng_base.c @@ -2853,8 +2853,7 @@ ng_generic_msg(node_p here, item_p item, hook_p lasthook) */ out: NG_RESPOND_MSG(error, here, item, resp); - if (msg) - NG_FREE_MSG(msg); + NG_FREE_MSG(msg); return (error); } |