libifconfig: remove redundant NULL check

Submitted by:	Puneeth_kumar.Jothaiah@emc.com
Reported by:	Coverity
Sponsored by:	Dell EMC Isilon
This commit is contained in:
Eric van Gyzen 2020-05-27 18:26:10 +00:00
parent a7a64b722b
commit 1add7d0f8d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361559

View file

@ -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;
}