]> git.baikalelectronics.ru Git - kernel.git/commit
[IPV4] fib_trie: fix warning from rcu_assign_poinger
authorStephen Hemminger <shemminger@vyatta.com>
Sun, 23 Mar 2008 00:59:58 +0000 (17:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Mar 2008 00:59:58 +0000 (17:59 -0700)
commitefa1d4f24b508c1669f6459259700827a1d5b5ba
tree233300e665ed862dab958087b8afa31baaf0ef5f
parentce2a91418eb9918017114268ed8850517207b022
[IPV4] fib_trie: fix warning from rcu_assign_poinger

This gets rid of a warning caused by the test in rcu_assign_pointer.
I tried to fix rcu_assign_pointer, but that devolved into a long set
of discussions about doing it right that came to no real solution.
Since the test in rcu_assign_pointer for constant NULL would never
succeed in fib_trie, just open code instead.

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Acked-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/fib_trie.c