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

There are some repetitive codes in flush_store, we can remove
them by calling store_bridge_parm, also, it would send rtnl notification
after we add it in store_bridge_parm in the following patches.

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