Fix: Remove dead code from filter interpreter
[lttng-modules.git] / lttng-filter-interpreter.c
index 8323fbbb2cfe01b6bb63d7d5baae9d734f572757..c7e9f1f1f1777577cc16baf7bda9f9d5ab5f92fa 100644 (file)
@@ -119,21 +119,16 @@ int stack_strcmp(struct estack *stack, int top, const char *cmp_type)
                        }
                }
                if (unlikely(char_ax == '\0')) {
-                       if (char_bx == '\0') {
-                               diff = 0;
-                               break;
-                       } else {
-                               if (estack_bx(stack, top)->u.s.literal) {
-                                       ret = parse_char(estack_bx(stack, top),
-                                               &char_bx, &offset_bx);
-                                       if (ret == -1) {
-                                               diff = 0;
-                                               break;
-                                       }
+                       if (estack_bx(stack, top)->u.s.literal) {
+                               ret = parse_char(estack_bx(stack, top),
+                                       &char_bx, &offset_bx);
+                               if (ret == -1) {
+                                       diff = 0;
+                                       break;
                                }
-                               diff = 1;
-                               break;
                        }
+                       diff = 1;
+                       break;
                }
                if (estack_bx(stack, top)->u.s.literal) {
                        ret = parse_char(estack_bx(stack, top),
This page took 0.025903 seconds and 4 git commands to generate.