svn commit: r333421 - head/sys/dev/e1000

Matt Macy mmacy at FreeBSD.org
Wed May 9 17:48:53 UTC 2018


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;
 	}
 


More information about the svn-src-head mailing list