aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorJon Hunter <jonathanh@nvidia.com>2016-08-26 09:09:03 -0400
committerWolfram Sang <wsa@the-dreams.de>2016-08-30 16:00:08 -0400
commitf4c2d89bd4b13ec448f6c5dc07f445883685ea4b (patch)
treef269f6b8f70e072c607058c474941519b3b53e19 /tools/perf/scripts/python/export-to-postgresql.py
parent0da9ab89aba975d2b27b829636e253c5b2771c13 (diff)
i2c: tegra: Simplify I2C resume
The I2C adapter is unlocked regardless of whether the tegra_i2c_init() called during the resume is successful or not. However, if the tegra_i2c_init() is not successful, then ->is_suspended is not set to false. Simplify the resume code by only setting ->is_suspended to false if tegra_i2c_init() is successful and return the error code from tegra_i2c_init(). Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Acked-by: Laxman Dewangan <ldewangan@nvidia.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions