]> git.puffer.fish Git - mirror/frr.git/commit
zebra: Remove goto's that do not do anything special
authorDonald Sharp <sharpd@nvidia.com>
Mon, 3 Oct 2022 17:13:50 +0000 (13:13 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Mon, 12 Dec 2022 15:44:57 +0000 (10:44 -0500)
commitc7f0429e813e01b697c7779cd5e3bada5f692446
tree7fbfd4e397ef21a6a014c8c2f240ca7baa354bea
parent7d83e139378ec25a8a69146784af5227fbe25b4f
zebra: Remove goto's that do not do anything special

If we have this semantics:

int ret = FAILURE;

if (foo)
    goto done;

....

done:
    return ret;

This pattern does us no favors and makes it harder to figure out what is going
on.  Let's remove.

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