Date: Wed, 28 Nov 2018 06:54:03 +0000 (UTC) From: Andrew Rybchenko <arybchik@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r341107 - head/sys/dev/sfxge/common Message-ID: <201811280654.wAS6s3rr083878@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811280654.wAS6s3rr083878>