diff options
author | Crt Mori <cmo@melexis.com> | 2016-10-14 15:43:14 +0200 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-10-23 19:33:50 +0100 |
commit | 3f5def652f6609dd1981be8283de155f15a3df48 (patch) | |
tree | c2fc7040f4bf98db472585799c36fc6b9ea36ab5 /include | |
parent | d5d4602e040538b56e6fbedcc8542dce7e2352d3 (diff) |
iio: ms65611_core: Fixes dereferencing regulator pointer
Change in handling of the regulator description means that static
checkers correctly assume we could be using dereferenced pointer to the
regulator. In reality we will never get the -ENODEV error, as current
behavior flow does not predict it, because:
If the device tree or board file does not define suitable regulators for
the component, it will be substituted by a dummy regulator, or, if
regulators are disabled altogether, by stubs.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Suggested-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Crt Mori <cmo@melexis.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions