Date: Wed, 27 May 2020 18:26:10 +0000 (UTC) From: Eric van Gyzen <vangyzen@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r361559 - head/lib/libifconfig Message-ID: <202005271826.04RIQB5K060140@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: vangyzen Date: Wed May 27 18:26:10 2020 New Revision: 361559 URL: https://svnweb.freebsd.org/changeset/base/361559 Log: libifconfig: remove redundant NULL check Submitted by: Puneeth_kumar.Jothaiah@emc.com Reported by: Coverity Sponsored by: Dell EMC Isilon Modified: head/lib/libifconfig/libifconfig_inet6.c Modified: head/lib/libifconfig/libifconfig_inet6.c ============================================================================== --- head/lib/libifconfig/libifconfig_inet6.c Wed May 27 18:24:50 2020 (r361558) +++ head/lib/libifconfig/libifconfig_inet6.c Wed May 27 18:26:10 2020 (r361559) @@ -97,7 +97,7 @@ ifconfig_inet6_get_addrinfo(ifconfig_handle_t *h, addr->lifetime = ifr6.ifr_ifru.ifru_lifetime; /* struct copy */ /* Set the vhid */ - if (ifa->ifa_data && ifa->ifa_data) { + if (ifa->ifa_data) { addr->vhid = ((struct if_data *)ifa->ifa_data)->ifi_vhid; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005271826.04RIQB5K060140>