tools lib traceevent: Cleanup realloc use
authorNamhyung Kim <namhyung.kim@lge.com>
Tue, 24 Apr 2012 01:29:44 +0000 (10:29 +0900)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 4 Jul 2012 04:40:31 +0000 (13:40 +0900)
commitf6ced60fb6c0ee115982157457c47e48802d6e1d
tree248c494d38f7c09b165bb12bcc022d4de6db8075
parentc9bbabe32a231b5caa8c42fa6783405346983c59
tools lib traceevent: Cleanup realloc use

The if branch is completely unnecessary since 'realloc' can handle
NULL pointers for the first parameter.

This patch is just an adoption of Ulrich Drepper's recent patch on
perf tools.

Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ulrich Drepper <drepper@gmail.com>
Link: http://lkml.kernel.org/r/1335230984-7613-1-git-send-email-namhyung.kim@lge.com
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/lib/traceevent/event-parse.c
tools/lib/traceevent/parse-filter.c