stats.c: port to new infrastructure
[lttv.git] / ltt / branches / poly / lttv / lttv / filter.c
index b8eb2ad63684ac25f6e4ba45b8c3c4eb75957b6e..41e2f89838949fcbe60822eaca27fb7a46bc7933 100644 (file)
@@ -80,8 +80,6 @@
 #include <lttv/lttv.h>
 #include <lttv/filter.h>
 #include <ltt/trace.h>
-#include <ltt/type.h>
-#include <ltt/facility.h>
 #include <stdlib.h>
 #include <string.h>
 
@@ -2023,10 +2021,9 @@ lttv_filter_tree_parse_branch(
             else return se->op((gpointer)&state->state->s,v);
             break;
         case LTTV_FILTER_STATE_CPU:
-            if(context == NULL) return TRUE;
+            if(state == NULL) return TRUE;
             else {
-              if(state == NULL) return TRUE;
-              else return se->op((gpointer)&state->cpu,v);
+              return se->op((gpointer)&state->cpu,v);
             }
             break;
         case LTTV_FILTER_EVENT_NAME:
This page took 0.02413 seconds and 4 git commands to generate.