summaryrefslogtreecommitdiff
path: root/bgpd/bgp_mpath.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-04-12 22:12:16 +0300
committerDonatas Abraitis <donatas@opensourcerouting.org>2022-04-12 22:12:16 +0300
commit26870e2dcc45c29df5997bf5c610d0c0cd013dc6 (patch)
tree884583ba1e5a98d8d2bc77e69b808c906a8c1626 /bgpd/bgp_mpath.c
parent58cf5c088a44a2e74eb625d1b6fe2bc8e31638ce (diff)
bgpd: Fix styling, drop braces for single statement block
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_mpath.c')
-rw-r--r--bgpd/bgp_mpath.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bgpd/bgp_mpath.c b/bgpd/bgp_mpath.c
index 37d2c45215..6cd6ddd9dd 100644
--- a/bgpd/bgp_mpath.c
+++ b/bgpd/bgp_mpath.c
@@ -905,9 +905,8 @@ void bgp_path_info_mpath_aggregate_update(struct bgp_path_info *new_best,
attr.aspath = aspath;
attr.origin = origin;
- if (community) {
+ if (community)
bgp_attr_set_community(&attr, community);
- }
if (ecomm)
bgp_attr_set_ecommunity(&attr, ecomm);
if (lcomm)