]> asedeno.scripts.mit.edu Git - linux.git/commit
perf map: Allow map__next() to receive a NULL arg
authorArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 28 Oct 2019 14:50:12 +0000 (11:50 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 6 Nov 2019 18:43:06 +0000 (15:43 -0300)
commit20419d3a5bc0a278ed7e2ee54943674004411933
tree06090a146ff0c0f142108d608d96a6534facc862
parentee2555b612869a763563c5389ad789a52db0afd1
perf map: Allow map__next() to receive a NULL arg

Just like free(), return NULL in that case, will simplify the
for_each_entry_safe() iterators.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Link: https://lkml.kernel.org/n/tip-pbde2ucn49khnrebclys9pny@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/map.c