bridge: simplify the stp_state_store by calling store_bridge_parm
authorXin Long <lucien.xin@gmail.com>
Fri, 8 Apr 2016 16:03:30 +0000 (00:03 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Apr 2016 02:42:32 +0000 (22:42 -0400)
commit4436156b6fbec746108d45431a9f1885de810ec1
tree6b82e56f2367a41c828765392a45159dd35b8ff5
parent347db6b49ec0ba5ee3c9d946d45b7db59cf40480
bridge: simplify the stp_state_store by calling store_bridge_parm

There are some repetitive codes in stp_state_store, we can remove
them by calling store_bridge_parm.

Signed-off-by: Xin Long <lucien.xin@gmail.com>
Reviewed-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_sysfs_br.c