In sys/dev/hwpmc/hwpmc_amd.c, fix a clang warning about invalid enum

conversions.

Reviewed by:	jkoshy
MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-31 12:37:07 +00:00
parent 45360108f8
commit b38c0519c5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=229076

View File

@ -889,7 +889,6 @@ pmc_amd_initialize(void)
* field returned by CPUID for instruction family >= 6.
*/
class = cputype = -1;
name = NULL;
switch (cpu_id & 0xF00) {
#if defined(__i386__)
@ -906,9 +905,8 @@ pmc_amd_initialize(void)
class = PMC_CLASS_K8;
name = "K8";
break;
}
if ((int) cputype == -1) {
default:
(void) printf("pmc: Unknown AMD CPU.\n");
return NULL;
}