]> git.baikalelectronics.ru Git - kernel.git/commit
perf tools: Cleanup realloc use
authorUlrich Drepper <drepper@akkadia.org>
Mon, 23 Apr 2012 13:04:29 +0000 (09:04 -0400)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 23 Apr 2012 18:33:05 +0000 (15:33 -0300)
commit04bea297b387314b97e2dde71de20383523cfd6d
tree2e9c84f9ee3e061eb81475c00bab57a5df3f5275
parentc416b7eddc1464eddfdc1060eee61fbae747b205
perf tools: Cleanup realloc use

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

This is really only a cleanup and submitted mainly to prevent
proliferation of bad practices.

Signed-off-by: Ulrich Drepper <drepper@gmail.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Robert Richter <robert.richter@amd.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/201204231304.q3ND4TFe020805@drepperk.user.openhosting.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/header.c