leds: as3645a: Fix error return code in as3645a_parse_node()
PATCH 1/1 leds: as3645a: Fix error return code in as3645a_parse_node()
Return error code -ENODEV rather than '0' when the indicator node can not be found.
Fixes a56ba8fbcb55 ("media: leds: as3645a: Add LED flash class driver")
Reported-by Hulk Robot <[email protected]>
Signed-off-by Zhen Lei <[email protected]>
--- drivers/leds/leds-as3645a.c | 1 + 1 file changed, 1 insertion(+)
drivers/leds/leds-as3645a.c +1 -0
@@ -545,6 +545,7 @@ static int as3645a_parse_node(struct as3645a *flash,if (!flash->indicator_node) {dev_warn (&flash->client->dev,"can't find indicator node\n" ); + rval = -ENODEV ; goto out_err; }
Signature · 1 line
2.26.0.106.g9fadedd
Quoted 6 lines · Zhen Lei
Return error code
-ENODEVrather than '0' when the indicator node can not be found.Fixes a56ba8fbcb55 ("media: leds: as3645a: Add LED flash class driver")Reported-by Hulk Robot <[email protected]>Signed-off-by Zhen Lei <[email protected]>
Acked-by Sakari Ailus <[email protected]>
Signature · 1 line
Sakari Ailus
Pavel Machek
AppliedQuoted 6 lines · Zhen Lei
Return error code
-ENODEVrather than '0' when the indicator node can not be found.Fixes a56ba8fbcb55 ("media: leds: as3645a: Add LED flash class driver")Reported-by Hulk Robot <[email protected]>Signed-off-by Zhen Lei <[email protected]>
Thanks, applied.
Pavel
Signature · 1 line
http://www.livejournal.com/~pavelmachek