[PATCH 33/50] staging: omap-thermal: refactor APIs handling threshold values
Eduardo Valentin
eduardo.valentin at ti.com
Sat Mar 16 12:49:20 UTC 2013
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.
>
> regards,
> dan carpenter
>
>
>
More information about the devel
mailing list