ipv4: fib_trie leaf free optimization
authorStephen Hemminger <shemminger@vyatta.com>
Thu, 10 Apr 2008 10:47:34 +0000 (03:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Apr 2008 10:47:34 +0000 (03:47 -0700)
commit387a5487f5a1f8bfc3b2c5818e50dfd19eeb4f3f
treeb8e6fdea41532619eecb1d1dd3f546194d855226
parentef3660ce0649fa10265455f539b72607cff53d02
ipv4: fib_trie leaf free optimization

Avoid unneeded test in the case where object to be freed
has to be a leaf. Don't need to use the generic tnode_free()
function, instead just setup leaf to be freed.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c