diff options
-rw-r--r-- | tools/lib/traceevent/event-parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/traceevent/event-parse.c b/tools/lib/traceevent/event-parse.c index 6b647c17fff..38d6595891a 100644 --- a/tools/lib/traceevent/event-parse.c +++ b/tools/lib/traceevent/event-parse.c | |||
@@ -5363,7 +5363,7 @@ int pevent_register_print_function(struct pevent *pevent, | |||
5363 | if (type == PEVENT_FUNC_ARG_VOID) | 5363 | if (type == PEVENT_FUNC_ARG_VOID) |
5364 | break; | 5364 | break; |
5365 | 5365 | ||
5366 | if (type < 0 || type >= PEVENT_FUNC_ARG_MAX_TYPES) { | 5366 | if (type >= PEVENT_FUNC_ARG_MAX_TYPES) { |
5367 | do_warning("Invalid argument type %d", type); | 5367 | do_warning("Invalid argument type %d", type); |
5368 | ret = PEVENT_ERRNO__INVALID_ARG_TYPE; | 5368 | ret = PEVENT_ERRNO__INVALID_ARG_TYPE; |
5369 | goto out_free; | 5369 | goto out_free; |