diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-12-28 13:23:04 +0300 | 
|---|---|---|
| committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-02 22:53:10 +0300 | 
| commit | 5146e0b05963f75347c9f4e18996da245f859e32 (patch) | |
| tree | dfd3f47d3f455d82f5eb741cf63595fd24d3189f /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 3c8e77dd20ab733f855e66bb6197ce84eb33e480 (diff) | |
| download | linux-5146e0b05963f75347c9f4e18996da245f859e32.tar.xz | |
clk: simplify __clk_init_parent()
The translation from the index into clk_core is done by
clk_core_get_parent_by_index().  The if-block for num_parents == 1
case is duplicating the code in the clk_core_get_parent_by_index().
Drop the "if (num_parents == 1)" from the special case.  Instead,
set the index to zero if .get_parent() is missing.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Vladimir Zapolskiy <vz@mleia.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions
