lkml.org 
[lkml]   [2013]   [Mar]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 33/50] staging: omap-thermal: refactor APIs handling threshold values
On Sat, Mar 16, 2013 at 08:49:20AM -0400, Eduardo Valentin wrote:
> On 16-03-2013 04:39, Dan Carpenter wrote:
> >On Fri, Mar 15, 2013 at 09:00:21AM -0400, Eduardo Valentin wrote:
> >> if (ret) {
> >> dev_err(bg_ptr->dev, "failed to read thot\n");
> >>- return -EIO;
> >>+ ret = -EIO;
> >>+ goto exit;
> >> }
> >>
> >>- *thot = temp;
> >>+ *val = temp;
> >>
> >>+exit:
> >> return 0;
> >> }
> >
> >
> >The bunny hop has introduced a bug and this always returns success.
>
> What was the bug introduced?
>
> I will send a patch to fix the return value.

Returning the wrong value *is* the bug.

regards,
dan carpenter



\
 
 \ /
  Last update: 2013-03-16 15:21    [W:0.077 / U:0.032 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site