summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-max77705.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/leds/leds-max77705.c')
-rw-r--r--drivers/leds/leds-max77705.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/leds/leds-max77705.c b/drivers/leds/leds-max77705.c
index 933cb4f19be9..b7403b3fcf5e 100644
--- a/drivers/leds/leds-max77705.c
+++ b/drivers/leds/leds-max77705.c
@@ -180,7 +180,7 @@ static int max77705_add_led(struct device *dev, struct regmap *regmap, struct fw
ret = fwnode_property_read_u32(np, "reg", &reg);
if (ret || reg >= MAX77705_LED_NUM_LEDS)
- ret = -EINVAL;
+ return -EINVAL;
info = devm_kcalloc(dev, num_channels, sizeof(*info), GFP_KERNEL);
if (!info)