diff options
author | Dmitry Osipenko <[email protected]> | 2020-09-30 01:19:09 +0300 |
---|---|---|
committer | Wolfram Sang <[email protected]> | 2020-10-05 22:57:44 +0200 |
commit | 3b3b8e59d0144beb3e4c5dc29abfa1f89e6d4423 (patch) | |
tree | 931eb7d5cf39f103b084fcdc5f933d521c6abbc3 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | d380d48ff376d6e98ce0c07a70487beb5d05cb4b (diff) |
i2c: tegra: Check errors for both positive and negative values
The driver's code is inconsistent in regards to the error values checking.
The correct way should be to check both positive and negative values.
This patch cleans up the error-checks in the code. Note that the
pm_runtime_get_sync() could return positive value on success, hence only
relevant parts of the code are changed by this patch.
Reviewed-by: Michał Mirosław <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Tested-by: Thierry Reding <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions