diff mbox series

[ovs-dev] bridge.c : Fix bridge_configure_rstp if-else coding style.

Message ID ME3PR01MB5781C6F18355DE1777C85DE2CD249@ME3PR01MB5781.ausprd01.prod.outlook.com
State Superseded
Headers show
Series [ovs-dev] bridge.c : Fix bridge_configure_rstp if-else coding style. | expand

Commit Message

lin huang May 26, 2021, 3:13 p.m. UTC
Author: miter <linhuang@ruijie.com.cn>
Date:   Wed May 26 19:46:59 2021 +0800

bridge.c : Fix bridge_configure_rstp if-else coding style.

Signed-off-by: Miter Lin <linhuang@ruijie.com.cn>
---
          }
diff mbox series

Patch

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);