[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20121025141638.16300.43943.stgit@localhost.localdomain>
Date: Thu, 25 Oct 2012 15:16:55 +0100
From: Alan Cox <alan@...rguk.ukuu.org.uk>
To: ramakrishna.pallala@...el.com, linux-kernel@...r.kernel.org
Subject: [PATCH RESEND] max17042: missing assignment
From: Alan Cox <alan@...ux.intel.com>
The second error check is unreachable because the lock function
isn't assigned to ret
Signed-off-by: Alan Cox <alan@...ux.intel.com>
---
drivers/power/max17042_battery.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/power/max17042_battery.c b/drivers/power/max17042_battery.c
index 74abc6c..73b432d 100644
--- a/drivers/power/max17042_battery.c
+++ b/drivers/power/max17042_battery.c
@@ -572,7 +572,7 @@ static int max17042_init_chip(struct max17042_chip *chip)
__func__);
return -EIO;
}
- max17042_verify_model_lock(chip);
+ ret = max17042_verify_model_lock(chip);
if (ret) {
dev_err(&chip->client->dev, "%s lock verify failed\n",
__func__);
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists