mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
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:
parent
a7a64b722b
commit
1add7d0f8d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=361559
|
@ -97,7 +97,7 @@ ifconfig_inet6_get_addrinfo(ifconfig_handle_t *h,
|
||||||
addr->lifetime = ifr6.ifr_ifru.ifru_lifetime; /* struct copy */
|
addr->lifetime = ifr6.ifr_ifru.ifru_lifetime; /* struct copy */
|
||||||
|
|
||||||
/* Set the vhid */
|
/* Set the vhid */
|
||||||
if (ifa->ifa_data && ifa->ifa_data) {
|
if (ifa->ifa_data) {
|
||||||
addr->vhid = ((struct if_data *)ifa->ifa_data)->ifi_vhid;
|
addr->vhid = ((struct if_data *)ifa->ifa_data)->ifi_vhid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue