Skip to content
Commit 2e655571 authored by Ben Hutchings's avatar Ben Hutchings Committed by David S. Miller
Browse files

ipv4: fib_trie: Fix lookup error return

In commit a07f5f50

 "[IPV4] fib_trie: style
cleanup", the changes to check_leaf() and fn_trie_lookup() were wrong - where
fn_trie_lookup() would previously return a negative error value from
check_leaf(), it now returns 0.
 
Now fn_trie_lookup() doesn't appear to care about plen, so we can revert
check_leaf() to returning the error value.

Signed-off-by: default avatarBen Hutchings <bhutchings@solarflare.com>
Tested-by: default avatarWilliam Boughton <bill@boughton.de>
Acked-by: default avatarStephen Heminger <shemminger@vyatta.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3d8ea1fd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment