]> 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)
commit87a2d22cd21b3f72fe17ea1c0781aad13e6adb0f
treeb78d4e62dc244d65aa23a33b9240aa71be058580
parenta33c02ddb4c0739c2422f4fa50896c1656f48524
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