svn commit: r361559 - head/lib/libifconfig

Eric van Gyzen vangyzen at FreeBSD.org
Wed May 27 18:26:11 UTC 2020


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.Jothaiah at 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;
 	}
 


More information about the svn-src-head mailing list