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

Andrew Rybchenko arybchik at FreeBSD.org
Wed Dec 28 16:21:47 UTC 2016


Author: arybchik
Date: Wed Dec 28 16:21:46 2016
New Revision: 310708
URL: https://svnweb.freebsd.org/changeset/base/310708

Log:
  sfxge(4): do not initialize enumerated type variable to another type
  
  Fix build warning generated by ICC.
  
  Sponsored by:   Solarflare Communications, Inc.
  MFC after:      2 days

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

Modified: head/sys/dev/sfxge/common/efx_nic.c
==============================================================================
--- head/sys/dev/sfxge/common/efx_nic.c	Wed Dec 28 16:16:48 2016	(r310707)
+++ head/sys/dev/sfxge/common/efx_nic.c	Wed Dec 28 16:21:46 2016	(r310708)
@@ -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;


More information about the svn-src-head mailing list