aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorCrt Mori <[email protected]>2016-09-05 11:14:49 +0200
committerJonathan Cameron <[email protected]>2016-09-05 21:09:38 +0100
commitfbe84bd4803eb6c96376af5530ce69e1db873b5f (patch)
tree0a486f49e18cee511fe61da8c1f1ce9833b19e01 /tools/perf/scripts/python/stackcollapse.py
parent67516074884b4bde71ca8ca4724544669935cc5d (diff)
iio: devm_regulator_get_optional never returns NULL
This patch is inspired by a comment of Jonathan Cameron on patch of Linus Walleij commit aeb55fff3891834e07a3144159a7298a19696af8 ("iio: st_sensors: fetch and enable regulators unconditionally"). Because changes made in this patch are actually reference generators they should be using devm_regulator_get_optional, but if they do not explicitly set the reference to NULL they should not be using IS_ERR_OR_NULL, but simple IS_ERR check. Suggested-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Crt Mori <[email protected]> Reviewed-by: Linus Walleij <[email protected]> Acked-by: Lars-Peter Clausen <[email protected]> Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions