diff options
| author | Christophe JAILLET <[email protected]> | 2023-06-08 07:27:22 +0200 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2023-06-08 11:36:27 +0100 |
| commit | 41a343cd6b7f8d0f70dd90c236086ccf8a84a7de (patch) | |
| tree | b8468dc46a5412a2687c21e8a8f38b08e855b2bd /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 3b3a8d6d34a3ace4d49beb6f69ebb0d3cfaf0479 (diff) | |
ASoC: tegra: Simplify code around clk_get_rate() handling
clk_get_rate() returns an unsigned long, so there is no point in storing it
in a long, and test for negative values.
So, turn 'parent_rate' into an unsigned long, simplify the sanity check,
the error message and the return value, in case of error (i.e. 0).
Doing so also turns 'i' and 'valid_rates' into unsigned long, but it is
fine and harmless.
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/53f928290f08f50ff43031e17fe1d88443c2c441.1686202022.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions