commit | 6b7f4e25f3309f106a5c7ff42c8231494cf285d3 | [log] [tgz] |
---|---|---|
author | Mark Brown <broonie@kernel.org> | Mon Jun 20 13:53:32 2016 +0100 |
committer | Jonathan Cameron <jic23@kernel.org> | Sun Jun 26 17:38:27 2016 +0100 |
tree | 2bbe53fa62729d5d6080e5383f232c370f512498 | |
parent | 0c1f91b98552da49d9d8eed32b3132a58d2f4598 [diff] |
iio:ad7266: Fix broken regulator error handling 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> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org>