* [PATCH RESEND] max17042: missing assignment
@ 2012-10-25 14:16 Alan Cox
2012-10-25 14:28 ` Pallala, Ramakrishna
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2012-10-25 14:16 UTC (permalink / raw)
To: ramakrishna.pallala, linux-kernel
From: Alan Cox <alan@linux.intel.com>
The second error check is unreachable because the lock function
isn't assigned to ret
Signed-off-by: Alan Cox <alan@linux.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__);
^ permalink raw reply related [flat|nested] 3+ messages in thread
* RE: [PATCH RESEND] max17042: missing assignment
2012-10-25 14:16 [PATCH RESEND] max17042: missing assignment Alan Cox
@ 2012-10-25 14:28 ` Pallala, Ramakrishna
2012-11-18 23:03 ` Anton Vorontsov
0 siblings, 1 reply; 3+ messages in thread
From: Pallala, Ramakrishna @ 2012-10-25 14:28 UTC (permalink / raw)
To: Alan Cox, linux-kernel@vger.kernel.org
Cc: Anton Vorontsov (cbouatmailru@gmail.com)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="utf-8", Size: 984 bytes --]
Thanks Alan.
> The second error check is unreachable because the lock function isn't assigned
> to ret
>
> Signed-off-by: Alan Cox <alan@linux.intel.com>
Acked-by: Ramakrishna Pallala <ramakrishna.pallala@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__);
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þG«éÿ{ayº\x1dÊÚë,j\a¢f£¢·hïêÿêçz_è®\x03(éÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?¨èÚ&£ø§~á¶iOæ¬z·vØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?I¥
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH RESEND] max17042: missing assignment
2012-10-25 14:28 ` Pallala, Ramakrishna
@ 2012-11-18 23:03 ` Anton Vorontsov
0 siblings, 0 replies; 3+ messages in thread
From: Anton Vorontsov @ 2012-11-18 23:03 UTC (permalink / raw)
To: Pallala, Ramakrishna; +Cc: Alan Cox, linux-kernel@vger.kernel.org
On Thu, Oct 25, 2012 at 02:28:03PM +0000, Pallala, Ramakrishna wrote:
>
> Thanks Alan.
>
> > The second error check is unreachable because the lock function isn't assigned
> > to ret
> >
> > Signed-off-by: Alan Cox <alan@linux.intel.com>
> Acked-by: Ramakrishna Pallala <ramakrishna.pallala@intel.com>
For some reason I don't have the original patch in my mailbox. I wonder if
I have not been Cc'ed on this one or it got lost...
Anyway, I reconstructed it by hand and applied, thanks a lot!
Anton.
> > ---
> >
> > 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__);
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-11-18 23:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-10-25 14:16 [PATCH RESEND] max17042: missing assignment Alan Cox
2012-10-25 14:28 ` Pallala, Ramakrishna
2012-11-18 23:03 ` Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox