From 1add7d0f8da88ee9c77512d1d23eafcff811d6de Mon Sep 17 00:00:00 2001 From: Eric van Gyzen Date: Wed, 27 May 2020 18:26:10 +0000 Subject: [PATCH] libifconfig: remove redundant NULL check Submitted by: Puneeth_kumar.Jothaiah@emc.com Reported by: Coverity Sponsored by: Dell EMC Isilon --- lib/libifconfig/libifconfig_inet6.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libifconfig/libifconfig_inet6.c b/lib/libifconfig/libifconfig_inet6.c index c2edc5debf91..04fd89b38d57 100644 --- a/lib/libifconfig/libifconfig_inet6.c +++ b/lib/libifconfig/libifconfig_inet6.c @@ -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; }