vrf: move vrf_insert_slave so we can drop a goto label
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 19 Aug 2015 03:27:09 +0000 (06:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 20 Aug 2015 20:01:57 +0000 (13:01 -0700)
commit15df5e711245743a7a8018dd6535e39dcfcb38fc
tree17707a15fd46c7e3c95c2179e0f0e9a3bdb8225c
parent67f3a90b54322314a01af28946799a84c1b1d190
vrf: move vrf_insert_slave so we can drop a goto label

We can simplify do_vrf_add_slave by moving vrf_insert_slave in the end
of the enslaving and thus eliminate an error goto label. It always
succeeds and isn't needed before that anyway.

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