]> git.puffer.fish Git - mirror/frr.git/commit
zebra: remove unnecessary `cmd =` check 6094/head
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 26 Mar 2020 14:39:16 +0000 (10:39 -0400)
committerStephen Worley <sworley@cumulusnetworks.com>
Thu, 26 Mar 2020 14:39:16 +0000 (10:39 -0400)
commit13e0321ac99554852cecfeb7701f8e38baf1d773
treeae2cd33380d8373ed4eb2697f87bf304ca4adafd
parentd8bfd8dc9a899f841967257a6b5f30910fdc17c8
zebra: remove unnecessary `cmd =` check

In the netlink code for determining whether to set
a src on the route, we check if the cmd=NEW_ROUTE
but its not possible for this to ever be anything
but a new route since we do a goto skip further up
if its a DEL_ROUTE cmd.

So remove this unnecessary check.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
zebra/rt_netlink.c