diff options
author | Andrew Rybchenko <arybchik@FreeBSD.org> | 2016-05-11 06:16:53 +0000 |
---|---|---|
committer | Andrew Rybchenko <arybchik@FreeBSD.org> | 2016-05-11 06:16:53 +0000 |
commit | a4983a11aa49d27319c2bcc608e068f972998984 (patch) | |
tree | 08b53eb71493e7ede3477ec0c4523b8c382b3522 /sys/dev/sfxge/common/efx_intr.c | |
parent | f49cb708cd405a7a0d66a8b30a7e29c841867652 (diff) | |
download | src-a4983a11aa49d27319c2bcc608e068f972998984.tar.gz src-a4983a11aa49d27319c2bcc608e068f972998984.zip |
sfxge(4): remove Falcon-specific code paths from common code
Submitted by: Andy Moreton <amoreton at solarflare.com>
Sponsored by: Solarflare Communications, Inc.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D6289
Notes
Notes:
svn path=/head/; revision=299403
Diffstat (limited to 'sys/dev/sfxge/common/efx_intr.c')
-rw-r--r-- | sys/dev/sfxge/common/efx_intr.c | 21 |
1 files changed, 3 insertions, 18 deletions
diff --git a/sys/dev/sfxge/common/efx_intr.c b/sys/dev/sfxge/common/efx_intr.c index 555b1ee380ed..a1029c40b971 100644 --- a/sys/dev/sfxge/common/efx_intr.c +++ b/sys/dev/sfxge/common/efx_intr.c @@ -397,24 +397,9 @@ falconsiena_intr_trigger( /* bug16757: No event queues can be initialized */ EFSYS_ASSERT(!(enp->en_mod_flags & EFX_MOD_EV)); - switch (enp->en_family) { - case EFX_FAMILY_FALCON: - if (level >= EFX_NINTR_FALCON) { - rc = EINVAL; - goto fail1; - } - break; - - case EFX_FAMILY_SIENA: - if (level >= EFX_NINTR_SIENA) { - rc = EINVAL; - goto fail1; - } - break; - - default: - EFSYS_ASSERT(B_FALSE); - break; + if (level >= EFX_NINTR_SIENA) { + rc = EINVAL; + goto fail1; } if (level > EFX_MASK32(FRF_AZ_KER_INT_LEVE_SEL)) |