]> git.puffer.fish Git - matthieu/frr.git/commit
ldpd: remove dead code from zsend_redistribute_route()
authorRenato Westphal <renato@opensourcerouting.org>
Thu, 6 Oct 2016 13:16:58 +0000 (10:16 -0300)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Tue, 18 Oct 2016 12:51:24 +0000 (08:51 -0400)
commitfbf4aeaae6cb001a4b2ae1a8a4b28812d7910da7
tree2d5695cbaf5e0dbca14cd0fb2dc16071ead77ab5
parent9c6060d47a78c709db94bf975e8abcaa96daae1c
ldpd: remove dead code from zsend_redistribute_route()

As a general rule of thumb, we should write functions that do one thing
and that do it well. All callers of zsend_redistribute_route() are already
checking if the route should be redistributed or not (as the comment
says), so we definitely shouldn't bother with that in this function.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
zebra/zserv.c