Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1459347 > unrolled thread

[PATCH] iio: light: us5182d: Add missing error code assignment before test

Started byChristophe JAILLET <christophe.jaillet@wanadoo.fr>
First post2016-08-10 20:20 +0200
Last post2016-08-10 20:20 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] iio: light: us5182d: Add missing error code assignment before test Christophe JAILLET <christophe.jaillet@wanadoo.fr> - 2016-08-10 20:20 +0200

#1459347 — [PATCH] iio: light: us5182d: Add missing error code assignment before test

FromChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Date2016-08-10 20:20 +0200
Subject[PATCH] iio: light: us5182d: Add missing error code assignment before test
Message-ID<s4GgG-79-9@gated-at.bofh.it>
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>
---
 drivers/iio/light/us5182d.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/light/us5182d.c b/drivers/iio/light/us5182d.c
index 20c40f780964..18cf2e29e4d5 100644
--- a/drivers/iio/light/us5182d.c
+++ b/drivers/iio/light/us5182d.c
@@ -894,7 +894,7 @@ static int us5182d_probe(struct i2c_client *client,
 		goto out_err;
 
 	if (data->default_continuous) {
-		pm_runtime_set_active(&client->dev);
+		ret = pm_runtime_set_active(&client->dev);
 		if (ret < 0)
 			goto out_err;
 	}
-- 
2.7.4


---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel antivirus Avast.
https://www.avast.com/antivirus

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web