Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2018 17:48:52 +0000 (UTC)
From:      Matt Macy <mmacy@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r333421 - head/sys/dev/e1000
Message-ID:  <201805091748.w49Hmrsn083726@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mmacy
Date: Wed May  9 17:48:52 2018
New Revision: 333421
URL: https://svnweb.freebsd.org/changeset/base/333421

Log:
  Remove bogus panic
  
  r333345 added a panic to the default case statement on the incorrect
  premise that it should "never happen" when in fact it is simply a
  different adapter version.
  
  Reported by:	markj
  Approved by:	sbruno

Modified:
  head/sys/dev/e1000/e1000_82571.c

Modified: head/sys/dev/e1000/e1000_82571.c
==============================================================================
--- head/sys/dev/e1000/e1000_82571.c	Wed May  9 17:06:52 2018	(r333420)
+++ head/sys/dev/e1000/e1000_82571.c	Wed May  9 17:48:52 2018	(r333421)
@@ -1000,7 +1000,7 @@ static s32 e1000_reset_hw_82571(struct e1000_hw *hw)
 			e1000_put_hw_semaphore_82574(hw);
 		break;
 	default:
-		panic("unknown mac type %x\n", hw->mac.type);
+		/* we didn't get the semaphore no need to put it */
 		break;
 	}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805091748.w49Hmrsn083726>