This switch statement in perfmon/perfmon.c doesn't seem to have any effect,
so we should be be able to remove it.

Signed-off-by: Kevin Corry <[EMAIL PROTECTED]>
Signed-off-by: Carl Love <[EMAIL PROTECTED]>

Index: linux-2.6.22-rc4-arnd1-perfmon1/perfmon/perfmon.c
===================================================================
--- linux-2.6.22-rc4-arnd1-perfmon1.orig/perfmon/perfmon.c
+++ linux-2.6.22-rc4-arnd1-perfmon1/perfmon/perfmon.c
@@ -1128,13 +1128,6 @@ int __pfm_restart(struct pfm_context *ct
                return -EBUSY;
        }
 
-       switch (state) {
-       case PFM_CTX_MASKED:
-               break;
-       case PFM_CTX_LOADED:
-               if (ctx->smpl_addr && ctx->smpl_fmt->fmt_restart)
-                       break;
-       }
        __get_cpu_var(pfm_stats).pfm_restart_count++;
        /*
         * at this point, the context is either LOADED or MASKED
@@ -1646,7 +1639,7 @@ error_set:
        put_filp(filp);
        put_unused_fd(fd);
 error_file:
-       /* 
+       /*
         * calls the right *_put() functions
         * calls pfm_release_pmu()
         */
_______________________________________________
perfmon mailing list
[email protected]
http://www.hpl.hp.com/hosted/linux/mail-archives/perfmon/

Reply via email to