diff options
| author | Mark Brown <broonie@kernel.org> | 2016-06-20 13:53:32 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-07-27 09:47:37 -0700 |
| commit | ad4dea695c591c29f0bd354dfebf707d9ea169b9 (patch) | |
| tree | 4f3965993b01d822fb55ae2e64b20683000b5a32 /tools/perf/scripts/python | |
| parent | ebd052e9a258109df95e2222aedf10ead98f02df (diff) | |
iio:ad7266: Fix broken regulator error handling
commit 6b7f4e25f3309f106a5c7ff42c8231494cf285d3 upstream.
All regulator_get() variants return either a pointer to a regulator or an
ERR_PTR() so testing for NULL makes no sense and may lead to bugs if we
use NULL as a valid regulator. Fix this by using IS_ERR() as expected.
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
