lkml.org 
[lkml]   [2012]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 04/11] parse-events: Remove unused arg->dynarray.index
Date
It seems index field of struct print_arg_dynarray is not used.
Let's remove it.

Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
---
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


\
 
 \ /
  Last update: 2012-04-23 07:53    [W:1.192 / U:0.380 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site