svn commit: r341107 - head/sys/dev/sfxge/common

Andrew Rybchenko arybchik at FreeBSD.org
Wed Nov 28 06:54:05 UTC 2018


Author: arybchik
Date: Wed Nov 28 06:54:02 2018
New Revision: 341107
URL: https://svnweb.freebsd.org/changeset/base/341107

Log:
  sfxge(4): pacify false positive warning
  
  The warning says that it may be usage of possibly uninitialized value.
  
  Sponsored by:   Solarflare Communications, Inc.
  Differential Revision:  https://reviews.freebsd.org/D18183

Modified:
  head/sys/dev/sfxge/common/hunt_nic.c

Modified: head/sys/dev/sfxge/common/hunt_nic.c
==============================================================================
--- head/sys/dev/sfxge/common/hunt_nic.c	Wed Nov 28 06:53:51 2018	(r341106)
+++ head/sys/dev/sfxge/common/hunt_nic.c	Wed Nov 28 06:54:02 2018	(r341107)
@@ -105,7 +105,7 @@ hunt_board_cfg(
 {
 	efx_mcdi_iface_t *emip = &(enp->en_mcdi.em_emip);
 	efx_nic_cfg_t *encp = &(enp->en_nic_cfg);
-	uint8_t mac_addr[6];
+	uint8_t mac_addr[6] = { 0 };
 	uint32_t board_type = 0;
 	ef10_link_state_t els;
 	efx_port_t *epp = &(enp->en_port);


More information about the svn-src-head mailing list