]> git.puffer.fish Git - matthieu/frr.git/commitdiff
eigrpd: dest_addr does not need to be set to NULL
authorDonald Sharp <sharpd@nvidia.com>
Tue, 30 May 2023 23:48:55 +0000 (19:48 -0400)
committerDonald Sharp <sharpd@nvidia.com>
Thu, 1 Jun 2023 12:58:16 +0000 (08:58 -0400)
All paths of the loop set dest_addr at the start
of the loop.  No need to set it to NULL to immediately
set it too something else.

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

index 2237a611e8bd036ffa72432c3ab30ba982f297d7..a056267bf70c76a29540d278bffe87c17292d000 100644 (file)
@@ -842,9 +842,6 @@ static void eigrp_update_send_GR_part(struct eigrp_neighbor *nbr)
                        eigrp_fsm_event(&fsm_msg);
                }
 
-               /* NULL the pointer */
-               dest_addr = NULL;
-
                /* delete processed prefix from list */
                listnode_delete(prefixes, pe);