diff options
| author | Masahiro Yamada <[email protected]> | 2015-12-28 19:23:04 +0900 |
|---|---|---|
| committer | Stephen Boyd <[email protected]> | 2016-02-02 11:53:10 -0800 |
| commit | 5146e0b05963f75347c9f4e18996da245f859e32 (patch) | |
| tree | dfd3f47d3f455d82f5eb741cf63595fd24d3189f /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | 3c8e77dd20ab733f855e66bb6197ce84eb33e480 (diff) | |
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 <[email protected]>
Reviewed-by: Vladimir Zapolskiy <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions