From a02d9987a0348b7a3ff77167aed51daa47ce50d4 Mon Sep 17 00:00:00 2001 From: arybchik Date: Tue, 27 Nov 2018 13:00:06 +0000 Subject: [PATCH] sfxge(4): removing unneeded assert Remove ASSERT() from sfxge_link_mode_to_phy_cap() which causes an unnecessary panic, even though the callers have proper error handling. Submitted by: Andy Moreton Sponsored by: Solarflare Communications, Inc. Differential Revision: https://reviews.freebsd.org/D18167 --- sys/dev/sfxge/sfxge_port.c | 1 - 1 file changed, 1 deletion(-) diff --git a/sys/dev/sfxge/sfxge_port.c b/sys/dev/sfxge/sfxge_port.c index ac1b6b0f8635..93687b2c246a 100644 --- a/sys/dev/sfxge/sfxge_port.c +++ b/sys/dev/sfxge/sfxge_port.c @@ -896,7 +896,6 @@ sfxge_link_mode_to_phy_cap(efx_link_mode_t mode) case EFX_LINK_40000FDX: return (EFX_PHY_CAP_40000FDX); default: - EFSYS_ASSERT(B_FALSE); return (EFX_PHY_CAP_INVALID); } }