svn commit: r357194 - head/sys/dev/amdtemp

Conrad Meyer cem at FreeBSD.org
Tue Jan 28 03:27:07 UTC 2020


Author: cem
Date: Tue Jan 28 03:27:06 2020
New Revision: 357194
URL: https://svnweb.freebsd.org/changeset/base/357194

Log:
  amdtemp(4): Remove dead code that snuck in with r357190
  
  I intended to remove this before committing, but neglected to.

Modified:
  head/sys/dev/amdtemp/amdtemp.c

Modified: head/sys/dev/amdtemp/amdtemp.c
==============================================================================
--- head/sys/dev/amdtemp/amdtemp.c	Tue Jan 28 03:02:18 2020	(r357193)
+++ head/sys/dev/amdtemp/amdtemp.c	Tue Jan 28 03:27:06 2020	(r357194)
@@ -760,11 +760,6 @@ amdtemp_gettemp17h(device_t dev, amdsensor_t sensor)
 		    ("sensor %d: not valid", (int)sensor));
 		return (amdtemp_decode_fam10h_to_17h(sc->sc_offset, val, true));
 	default:
-#if 0
-		KASSERT(false, ("%s: invalid sensor %d", __func__,
-			(int)sensor));
-		return (-1);
-#endif
 		__unreachable();
 	}
 }


More information about the svn-src-all mailing list