]> git.baikalelectronics.ru Git - kernel.git/commit
perf evlist: Remove redundant validation from propagate_maps()
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 8 Sep 2015 07:58:51 +0000 (10:58 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 15 Sep 2015 13:16:48 +0000 (10:16 -0300)
commitcf0357e72089f63e81b485475a3632f95b4c3aca
treeb78d4e62dc244d65aa23a33b9240aa71be058580
parentcd43e9c99134ded3c69d44d0047318897102c6b9
perf evlist: Remove redundant validation from propagate_maps()

The validation checks that the values that were just assigned, got
assigned i.e. the error can't ever happen.  Subsequent patches will call
this code in places where errors are not being returned.  Changing those
code paths to return this non-existent error is counter-productive, so
just remove it.

That in turn results in perf_evlist__set_maps not needing to return an
error, but callers aren't checking it either, so remove that too.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@intel.com>
Link: http://lkml.kernel.org/r/1441699142-18905-4-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h