]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: Clean up switch statement to our standards 10017/head
authorDonald Sharp <sharpd@nvidia.com>
Fri, 3 Dec 2021 12:58:47 +0000 (07:58 -0500)
committerDonald Sharp <sharpd@nvidia.com>
Fri, 3 Dec 2021 12:58:47 +0000 (07:58 -0500)
Fixup the switch statement to not have a default statement
with a enum as the case.

Signed-off-by: Donald Sharp <sharpd@nvidia.com>
pimd/pim_vxlan.c

index 22b14eecf9ca851f23a2c2ed0f3fdaf07a212cd7..4bed52a5844635e09165120c2c463fbbb69a248b 100644 (file)
@@ -406,7 +406,9 @@ static void pim_vxlan_orig_mr_up_add(struct pim_vxlan_sg *vxlan_sg)
                pim_vxlan_update_sg_reg_state(pim, up, true);
                break;
 
-       default:;
+       case PIM_REG_JOIN_PENDING:
+       case PIM_REG_PRUNE:
+               break;
        }
 
        /* update the inherited OIL */