From dfc17a329ebcf15f4a8b0e120d15c90fbe2d6a5a Mon Sep 17 00:00:00 2001 From: Gleb Smirnoff Date: Fri, 15 Apr 2005 10:14:00 +0000 Subject: [PATCH] - Return error, if there was one. - No need to initialize error here. PR: kern/79884 Submitted by: Wojciech A. Koszek --- sys/netgraph/ng_echo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netgraph/ng_echo.c b/sys/netgraph/ng_echo.c index a00447a1917d..e9daf5eda958 100644 --- a/sys/netgraph/ng_echo.c +++ b/sys/netgraph/ng_echo.c @@ -100,10 +100,10 @@ nge_rcvmsg(node_p node, item_p item, hook_p lasthook) static int nge_rcvdata(hook_p hook, item_p item) { - int error = 0; + int error; NG_FWD_ITEM_HOOK(error, item, hook); - return (0); + return (error); } /*