[ovs-dev] [PATCH] fix coding style in bridge_configure_rstp() function.
miter
miterv at outlook.com
Mon May 31 12:20:57 UTC 2021
This patch fix the style of bridge_configure_rstp() function.
Signed-off-by: linhuang <linhuang at ruijie.com.cn>
---
vswitchd/bridge.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/vswitchd/bridge.c b/vswitchd/bridge.c
index 5ed7e8234..4ada54475 100644
--- a/vswitchd/bridge.c
+++ b/vswitchd/bridge.c
@@ -1883,14 +1883,12 @@ bridge_configure_rstp(struct bridge *br, bool enable_rstp)
if (eth_addr_from_string(config_str, &ea)) {
br_s.address = eth_addr_to_uint64(ea);
- }
- else {
+ } else {
br_s.address = eth_addr_to_uint64(br->ea);
VLOG_ERR("bridge %s: invalid rstp-address, defaulting "
"to "ETH_ADDR_FMT, br->name, ETH_ADDR_ARGS(br->ea));
}
- }
- else {
+ } else {
br_s.address = eth_addr_to_uint64(br->ea);
}
--
2.31.1
More information about the dev
mailing list