From f0d78e7ebfa785fd6037e1f1f711d6c382450c3b Mon Sep 17 00:00:00 2001 From: Hans Dedecker Date: Tue, 4 Jul 2017 11:14:54 +0200 Subject: ndp: optimize check_addr6_updates code Signed-off-by: Hans Dedecker --- src/ndp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/ndp.c') diff --git a/src/ndp.c b/src/ndp.c index b4767ea..2363a9d 100644 --- a/src/ndp.c +++ b/src/ndp.c @@ -347,10 +347,8 @@ static void check_addr6_updates(struct interface *iface) iface->ia_addr = addr; iface->ia_addr_len = len; - if (change) - dhcpv6_ia_postupdate(iface); - if (change) { + dhcpv6_ia_postupdate(iface); syslog(LOG_INFO, "Raising SIGUSR1 due to address change on %s", iface->ifname); raise(SIGUSR1); } -- cgit v1.2.3