lkml.org 
[lkml]   [2012]   [Dec]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] tools lib traceevent: remove redundant check from process_dynamic_array
Date
We check twice that 'field' is non-NULL, no need to do that.

Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
---
tools/lib/traceevent/event-parse.c | 5 -----
1 file changed, 5 deletions(-)

diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c
index 5a824e3..f7dc053 100644
--- a/tools/lib/traceevent/event-parse.c
+++ b/tools/lib/traceevent/event-parse.c
@@ -2481,11 +2481,6 @@ process_dynamic_array(struct event_format *event, struct print_arg *arg, char **

free_token(token);
arg = alloc_arg();
- if (!field) {
- do_warning("%s: not enough memory!", __func__);
- *tok = NULL;
- return EVENT_ERROR;
- }

type = process_arg(event, arg, &token);
if (type == EVENT_ERROR)
--
1.8.0


\
 
 \ /
  Last update: 2012-12-20 21:01    [W:0.393 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site