Martin KaFai Lau 990edb428c ipv6: Re-arrange code in rt6_probe()
It is a prep work for the next patch to remove write_lock
from rt6_probe().

1. Reduce the number of if(neigh) check.  From 4 to 1.
2. Bring the write_(un)lock() closer to the operations that the
   lock is protecting.

Hopefully, the above make rt6_probe() more readable.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Cc: Hannes Frederic Sowa <hannes@stressinduktion.org>
Cc: Julian Anastasov <ja@ssi.bg>
Cc: YOSHIFUJI Hideaki <hideaki.yoshifuji@miraclelinux.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-27 01:08:25 -07:00
..
2015-03-02 16:43:41 -05:00
2015-07-04 19:11:33 -07:00
2015-07-27 00:54:57 -07:00
2015-03-06 21:50:02 -05:00
2015-07-27 01:08:25 -07:00
2015-07-15 17:03:03 -07:00
2015-07-02 11:32:23 -07:00
2015-07-21 00:28:36 -07:00