Author: dim
Date: Sat Jan  7 14:35:37 2012
New Revision: 229776
URL: http://svn.freebsd.org/changeset/base/229776

Log:
  MFC r229076:
  
  In sys/dev/hwpmc/hwpmc_amd.c, fix a clang warning about invalid enum
  conversions.
  
  Reviewed by:  jkoshy

Modified:
  stable/9/sys/dev/hwpmc/hwpmc_amd.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/hwpmc/hwpmc_amd.c
==============================================================================
--- stable/9/sys/dev/hwpmc/hwpmc_amd.c  Sat Jan  7 14:04:00 2012        
(r229775)
+++ stable/9/sys/dev/hwpmc/hwpmc_amd.c  Sat Jan  7 14:35:37 2012        
(r229776)
@@ -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;
        }
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to