summaryrefslogtreecommitdiffstats
path: root/pimd/pim_rp.c
diff options
context:
space:
mode:
authorRafael Zalamena <rzalamena@opensourcerouting.org>2024-09-29 20:57:28 +0200
committerRafael Zalamena <rzalamena@opensourcerouting.org>2024-11-13 16:05:35 +0100
commit2941f579f76334b4e3531c9f5b3d442525dbf648 (patch)
tree52514a42d71067b21225346343e4646b8904fc2b /pimd/pim_rp.c
parentpim6d: fix channel oil leak on embedded RP (diff)
downloadfrr-2941f579f76334b4e3531c9f5b3d442525dbf648.tar.xz
frr-2941f579f76334b4e3531c9f5b3d442525dbf648.zip
pimd: fix check-patch warning
Remove unnecessary braces. Signed-off-by: Rafael Zalamena <rzalamena@opensourcerouting.org>
Diffstat (limited to '')
-rw-r--r--pimd/pim_rp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pimd/pim_rp.c b/pimd/pim_rp.c
index cf370857f..53d2a2d62 100644
--- a/pimd/pim_rp.c
+++ b/pimd/pim_rp.c
@@ -376,9 +376,8 @@ static int pim_rp_check_interface_addrs(struct rp_info *rp_info,
if (!pim_addr_cmp(pim_ifp->primary_address, rp_info->rp.rpf_addr))
return 1;
- if (!pim_ifp->sec_addr_list) {
+ if (!pim_ifp->sec_addr_list)
return 0;
- }
for (ALL_LIST_ELEMENTS_RO(pim_ifp->sec_addr_list, node, sec_addr)) {
sec_paddr = pim_addr_from_prefix(&sec_addr->addr);