public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] mfd: arizona: signedness bug in arizona_runtime_suspend()
@ 2015-10-19 10:18 Dan Carpenter
  2015-10-19 10:19 ` Charles Keepax
  2015-10-19 15:18 ` Lee Jones
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2015-10-19 10:18 UTC (permalink / raw)
  To: kernel-janitors

The "jd_active" variable needs to be signed for the error handling to
work.

Fixes: 143e5887ae57 ('mfd: arizona: factor out checking of jack detection state')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/drivers/mfd/arizona-core.c b/drivers/mfd/arizona-core.c
index 4e49210..d474732 100644
--- a/drivers/mfd/arizona-core.c
+++ b/drivers/mfd/arizona-core.c
@@ -628,7 +628,7 @@ err:
 static int arizona_runtime_suspend(struct device *dev)
 {
 	struct arizona *arizona = dev_get_drvdata(dev);
-	unsigned int jd_active = 0;
+	int jd_active = 0;
 	int ret;
 
 	dev_dbg(arizona->dev, "Entering AoD mode\n");

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-10-19 15:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-19 10:18 [patch] mfd: arizona: signedness bug in arizona_runtime_suspend() Dan Carpenter
2015-10-19 10:19 ` Charles Keepax
2015-10-19 15:18 ` Lee Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox