mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-15 22:30:43 +00:00
eigrpd: Remove unnecessary test for pointer
If we are inside the for loop then eigrp *must* be valid. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
fb85ce1b81
commit
5edc2cf3ea
@ -293,7 +293,7 @@ void eigrp_if_update(struct interface *ifp)
|
|||||||
*/
|
*/
|
||||||
for (ALL_LIST_ELEMENTS(eigrp_om->eigrp, node, nnode, eigrp)) {
|
for (ALL_LIST_ELEMENTS(eigrp_om->eigrp, node, nnode, eigrp)) {
|
||||||
/* EIGRP must be on and Router-ID must be configured. */
|
/* EIGRP must be on and Router-ID must be configured. */
|
||||||
if (!eigrp || eigrp->router_id.s_addr == 0)
|
if (eigrp->router_id.s_addr == 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Run each network for this interface. */
|
/* Run each network for this interface. */
|
||||||
|
Loading…
Reference in New Issue
Block a user