OSDN Git Service

tools lib traceevent: Handle strdup failure cases
authorNamhyung Kim <namhyung.kim@lge.com>
Mon, 9 Apr 2012 02:54:31 +0000 (11:54 +0900)
committerNamhyung Kim <namhyung@kernel.org>
Wed, 4 Jul 2012 04:40:31 +0000 (13:40 +0900)
commitca63858e9eb0ce495031c4ab5291874835cb43cf
tree71d27f1222dfc42f7d7063bb935d7b9c702bbb0b
parentdeba3fb26fd1ed3235b00dccced9784a7f76ec3c
tools lib traceevent: Handle strdup failure cases

There were some places didn't check return value of the strdup and had
unneeded/duplicated checks.  Fix it.

Signed-off-by: Namhyung Kim <namhyung.kim@lge.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Arnaldo Carvalho de Melo <acme@infradead.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: David Ahern <dsahern@gmail.com>
Link: http://lkml.kernel.org/r/1333940074-19052-5-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