summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/hwpmc/hwpmc_amd.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/dev/hwpmc/hwpmc_amd.c b/sys/dev/hwpmc/hwpmc_amd.c
index 268904b..9ffa62f 100644
--- a/sys/dev/hwpmc/hwpmc_amd.c
+++ b/sys/dev/hwpmc/hwpmc_amd.c
@@ -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;
}
OpenPOWER on IntegriCloud