git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tipc: Optimize null pointer check during neighbor discovery
[safe/jmp/linux-2.6]
/
net
/
tipc
/
discover.c
diff --git
a/net/tipc/discover.c
b/net/tipc/discover.c
index
5d643e5
..
faeaf06
100644
(file)
--- a/
net/tipc/discover.c
+++ b/
net/tipc/discover.c
@@
-200,9
+200,8
@@
void tipc_disc_recv_msg(struct sk_buff *buf)
dbg(" in own cluster\n");
if (n_ptr == NULL) {
n_ptr = tipc_node_create(orig);
- }
- if (n_ptr == NULL) {
- return;
+ if (!n_ptr)
+ return;
}
spin_lock_bh(&n_ptr->lock);
link = n_ptr->links[b_ptr->identity];