diff options
author | 2017-02-04 10:19:21 -0800 | |
---|---|---|
committer | 2017-02-05 17:36:40 +0100 | |
commit | 163478dae0b6ce2437488e54012705b53ef43f3d (patch) | |
tree | 5211e13ebc37a571cc0f8631bbba99624a5c2653 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | regulator: core: fix typo in regulator_bulk_disable() (diff) | |
download | linux-dev-163478dae0b6ce2437488e54012705b53ef43f3d.tar.xz linux-dev-163478dae0b6ce2437488e54012705b53ef43f3d.zip |
regulator: core: have regulator_dev_lookup() return ERR_PTR-encoded errors
Instead of returning both regulator_dev structure as return value and
auxiliary error code in 'ret' argument, let's switch to using ERR_PTR
encoded values. This makes it more obvious what is going on at call sites.
Also, let's not unlock the mutex in the middle of a loop, but rather break
out and have single unlock path.
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions