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

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