Commit e6421975 authored by Jiapeng Chong's avatar Jiapeng Chong Committed by Pavel Machek
Browse files

leds: is31fl32xx: Fix missing error code in is31fl32xx_parse_dt()



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: default avatarAbaci Robot <abaci@linux.alibaba.com>
Signed-off-by: default avatarJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Fixes: 9d7cffaf ("leds: Add driver for the ISSI IS31FL32xx family of LED controllers")
Acked-by: default avatarDavid Rivshin <drivshin@allworx.com>
Signed-off-by: default avatarPavel Machek <pavel@ucw.cz>
parent 51f3b2c3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -386,6 +386,7 @@ static int is31fl32xx_parse_dt(struct device *dev,
			dev_err(dev,
				"Node %pOF 'reg' conflicts with another LED\n",
				child);
			ret = -EINVAL;
			goto err;
		}