Re: [PATCH] leds: lm355x: Return proper error for lm3556_indicator_pattern_store error path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 9, 2012 at 6:53 PM, gshark <gshark.jeong@xxxxxxxxx> wrote:
> 2012년 10월 08일 01:05, Axel Lin 쓴 글:
>
>> Signed-off-by: Axel Lin <axel.lin@xxxxxxxxxx>
>> ---
>>   drivers/leds/leds-lm355x.c |    2 +-
>>   1 file changed, 1 insertion(+), 1 deletion(-)
>>
>> diff --git a/drivers/leds/leds-lm355x.c b/drivers/leds/leds-lm355x.c
>> index 065ec01..8f4e8e2 100644
>> --- a/drivers/leds/leds-lm355x.c
>> +++ b/drivers/leds/leds-lm355x.c
>> @@ -408,7 +408,7 @@ static ssize_t lm3556_indicator_pattern_store(struct
>> device *dev,
>>         return size;
>>   out:
>>         dev_err(chip->dev, "%s:i2c access fail to register\n", __func__);
>> -       return size;
>> +       return ret;
>>   }
>>     static DEVICE_ATTR(pattern, 0666, NULL,
>> lm3556_indicator_pattern_store);
>
>
> You're right.  Thank you Alex.
> Acked-by: G.Shark Jeong<gshark.jeong@xxxxxxxxx>
>
Merged, thanks,
-Bryan
--
To unsubscribe from this list: send the line "unsubscribe linux-leds" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux