]> git.karo-electronics.de Git - linux-beck.git/commit
netlink: simplify nfnetlink_bind
authorRichard Guy Briggs <rgb@redhat.com>
Wed, 23 Apr 2014 01:31:53 +0000 (21:31 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 Apr 2014 01:42:26 +0000 (21:42 -0400)
commitbfe4bc71c64a34813a7bde0ad4d28486679ac3fe
tree92e41b1ba89c3ae61cb9c11a56eef6cb36832bbb
parent4cd3675ebf74d7f559038ded6aa8088e4099a83d
netlink: simplify nfnetlink_bind

Remove duplicity and simplify code flow by moving the rcu_read_unlock() above
the condition and let the flow control exit naturally at the end of the
function.

Signed-off-by: Richard Guy Briggs <rgb@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nfnetlink.c