perf tools: Get rid of a duplicate va_end() in error reporting routine
authorNamhyung Kim <namhyung.kim@lge.com>
Thu, 19 Dec 2013 07:00:08 +0000 (16:00 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 19 Dec 2013 14:38:42 +0000 (11:38 -0300)
The va_end() in _eprintf() should be removed since the caller also
invokes va_end().

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1387436411-20160-4-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/debug.c

index 8640a91..299b555 100644 (file)
@@ -25,7 +25,6 @@ static int _eprintf(int level, const char *fmt, va_list args)
                        ui_helpline__vshow(fmt, args);
                else
                        ret = vfprintf(stderr, fmt, args);
-               va_end(args);
        }
 
        return ret;