net: bridge: remove unneeded variable 'err'
authorYueHaibing <yuehaibing@huawei.com>
Mon, 17 Dec 2018 09:46:23 +0000 (17:46 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 18 Dec 2018 23:50:13 +0000 (15:50 -0800)
commita26d94bff4d5af7c9bf5d5e779282e2258966ec3
treeeac1620621adf699e925ab0f4e992bfa4cb21d49
parent8937388acb09d6bf0f263fa8551d3e2b4e84de25
net: bridge: remove unneeded variable 'err'

function br_multicast_toggle now always return 0,
so the variable 'err' is unneeded.
Also cleanup dead branch in br_changelink.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c
net/bridge/br_netlink.c