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.jotha...@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; } _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"