tipc: Optimize null pointer check during neighbor discovery
authorAllan Stephens <allan.stephens@windriver.com>
Wed, 21 May 2008 21:53:34 +0000 (14:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 May 2008 21:53:34 +0000 (14:53 -0700)
commit811102ca23dfdde5ee8b782b3a4bbff44c499cb2
tree5572b81137018dc0ce931f6fcea46e0e090b762e
parent2ecb0924d7791372a70ef8f1174e37b329b955c3
tipc: Optimize null pointer check during neighbor discovery

This patch optimizes TIPC neighbor discovery code to avoid testing for
a null node pointer when the pointer is already known to be non-null.

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/discover.c