summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorarybchik <arybchik@FreeBSD.org>2016-12-31 11:18:22 +0000
committerarybchik <arybchik@FreeBSD.org>2016-12-31 11:18:22 +0000
commit33e9c8ed2ff0d2db7108c8616656de67b64f6ccb (patch)
treeb15a02ff6bc7432036b6d7119cf0b1ebbf7c5256
parentf554316bb7495423b69cc73491e548f0020259d7 (diff)
downloadFreeBSD-src-33e9c8ed2ff0d2db7108c8616656de67b64f6ccb.zip
FreeBSD-src-33e9c8ed2ff0d2db7108c8616656de67b64f6ccb.tar.gz
MFC r310708
sfxge(4): do not initialize enumerated type variable to another type Fix build warning generated by ICC. Sponsored by: Solarflare Communications, Inc.
-rw-r--r--sys/dev/sfxge/common/efx_nic.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/sfxge/common/efx_nic.c b/sys/dev/sfxge/common/efx_nic.c
index 9e05ab7..19a5c43 100644
--- a/sys/dev/sfxge/common/efx_nic.c
+++ b/sys/dev/sfxge/common/efx_nic.c
@@ -556,7 +556,7 @@ efx_nic_destroy(
EFSYS_ASSERT3U(enp->en_magic, ==, EFX_NIC_MAGIC);
EFSYS_ASSERT3U(enp->en_mod_flags, ==, 0);
- enp->en_family = 0;
+ enp->en_family = EFX_FAMILY_INVALID;
enp->en_esip = NULL;
enp->en_esbp = NULL;
enp->en_eslp = NULL;
OpenPOWER on IntegriCloud