]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
net: ipmr: rearrange and cleanup setsockopt
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Sat, 21 Nov 2015 14:57:31 +0000 (15:57 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Nov 2015 20:06:39 +0000 (15:06 -0500)
commit29e97d214509ef4977838e073d30f6b16f75c6d5
tree2065e7be564902d1e81233e7b45f46824823fbb5
parentaf623236a9f3a20aa2f15f03cf9fe7bfd13b8889
net: ipmr: rearrange and cleanup setsockopt

Take rtnl in the beginning unconditionally as most options already need
it (one exception - MRT_DONE, see the comment inside), make the
lock/unlock places central and move out the switch() local variables.

Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipmr.c