leds: is31fl32xx: Fix missing error code in is31fl32xx_parse_dt()
stable inclusion from stable-5.10.65 commit c391728c9b25e51a352a65562ae78dde3b11b6e0 bugzilla: 182361 https://gitee.com/openeuler/kernel/issues/I4EH3U Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=c391728c9b25e51a352a65562ae78dde3b11b6e0 -------------------------------- [ Upstream commit e6421975 ] The error code is missing in this code scenario, add the error code '-EINVAL' to the return value 'ret'. Eliminate the follow smatch warning: drivers/leds/leds-is31fl32xx.c:388 is31fl32xx_parse_dt() warn: missing error code 'ret'. Reported-by: NAbaci Robot <abaci@linux.alibaba.com> Signed-off-by: NJiapeng Chong <jiapeng.chong@linux.alibaba.com> Fixes: 9d7cffaf ("leds: Add driver for the ISSI IS31FL32xx family of LED controllers") Acked-by: NDavid Rivshin <drivshin@allworx.com> Signed-off-by: NPavel Machek <pavel@ucw.cz> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: NWeilong Chen <chenweilong@huawei.com> Signed-off-by: NChen Jun <chenjun102@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录