diff options
| author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-12-28 13:23:01 +0300 |
|---|---|---|
| committer | Stephen Boyd <sboyd@codeaurora.org> | 2016-02-02 04:01:50 +0300 |
| commit | 88cfbef2acd38443c3eed780263b5f5e95a8dc1f (patch) | |
| tree | 4da2bbb704c306b49a6008f1c5f5846c13b0d8b7 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
| parent | 176d11690ba2c8ad59f99734d692f19f451c408b (diff) | |
| download | linux-88cfbef2acd38443c3eed780263b5f5e95a8dc1f.tar.xz | |
clk: simplify clk_core_get_parent_by_index()
Drop the "if (!core->parents)" case and refactor the function a bit
because core->parents is always allocated. (Strictly speaking, it is
ZERO_SIZE_PTR if core->num_parents == 0, but such a case is omitted
by the if-conditional above.)
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/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions
