]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: light: us5182d: Add missing error code assignment before test
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Wed, 10 Aug 2016 05:18:16 +0000 (07:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 31 Oct 2016 11:02:10 +0000 (05:02 -0600)
commit1628f95b6e405370edc9aaba0276359dc4748ab6
tree4be4d9796a882f0bb9800f675d1c94748a69d16e
parent4100d32ab5a3df4292db4cda2396b0896bc3facc
iio: light: us5182d: Add missing error code assignment before test

commit 281269f8a0b00f5c95de5158e8595ed51bdb4b0a upstream.

It is likely that checking the result of 'pm_runtime_set_active' is
expected here.

Fixes: f0e5f57d3ac2 ("iio: light: us8152d: Add power management support")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/us5182d.c