diff options
author | 2017-02-03 13:56:00 -0800 | |
---|---|---|
committer | 2017-02-04 11:25:07 +0100 | |
commit | 7d245afa24b3ed911f6fd90079d70932ac5e5923 (patch) | |
tree | 8327b3a5405b6757b0c3ed7f12d118394cef35a7 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Merge remote-tracking branches 'regulator/topic/tps65086' and 'regulator/topic/twl' into regulator-next (diff) | |
download | linux-dev-7d245afa24b3ed911f6fd90079d70932ac5e5923.tar.xz linux-dev-7d245afa24b3ed911f6fd90079d70932ac5e5923.zip |
regulator: core: remove dead code in _regulator_get()
There is no point in assigning value to 'ret' before calling
regulator_dev_lookup() as it will clobber 'ret' anyway.
Also, let's explicitly return -PROBE_DEFER when try_module_get() fails,
instead of relying that earlier initialization of "regulator" carries
correct value.
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