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 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.

regards,
dan carpenter



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