[PATCH 04/11] parse-events: Remove unused arg->dynarray.index

From: Namhyung Kim
Date: Mon Apr 23 2012 - 01:00:48 EST


It seems index field of struct print_arg_dynarray is not used.
Let's remove it.

Signed-off-by: Namhyung Kim <namhyung.kim@xxxxxxx>
---
parse-events.c | 4 ----
parse-events.h | 1 -
2 files changed, 5 deletions(-)

diff --git a/parse-events.c b/parse-events.c
index b4ae313..3e5ac44 100644
--- a/parse-events.c
+++ b/parse-events.c
@@ -706,9 +706,6 @@ static void free_arg(struct print_arg *arg)
case PRINT_BSTRING:
free(arg->string.string);
break;
- case PRINT_DYNAMIC_ARRAY:
- free(arg->dynarray.index);
- break;
case PRINT_OP:
free(arg->op.op);
free_arg(arg->op.left);
@@ -2315,7 +2312,6 @@ process_dynamic_array(struct event_format *event, struct print_arg *arg, char **
goto out_free;

arg->dynarray.field = field;
- arg->dynarray.index = 0;

if (read_expected(EVENT_DELIM, ")") < 0)
goto out_free;
diff --git a/parse-events.h b/parse-events.h
index 67e7886..960e598 100644
--- a/parse-events.h
+++ b/parse-events.h
@@ -226,7 +226,6 @@ struct print_arg_symbol {

struct print_arg_dynarray {
struct format_field *field;
- struct print_arg *index;
};

struct print_arg;
--
1.7.10

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/