leds: max5970: Remove unused variable
leds-max5970.c:50:21: warning: variable 'num_leds' set but not used [-Wunused-but-set-variable]
Remove unused variable.
Fixes: 736214b4b0
("leds: max5970: Add support for max5970")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20231214184050.1272848-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Lee Jones <lee@kernel.org>
This commit is contained in:
parent
5e72f1fe23
commit
d3578b4982
@ -45,7 +45,7 @@ static int max5970_led_probe(struct platform_device *pdev)
|
||||
struct regmap *regmap;
|
||||
struct device_node *led_node, *child;
|
||||
struct max5970_led *ddata;
|
||||
int ret = -ENODEV, num_leds = 0;
|
||||
int ret = -ENODEV;
|
||||
|
||||
regmap = dev_get_regmap(pdev->dev.parent, NULL);
|
||||
if (!regmap)
|
||||
@ -89,7 +89,6 @@ static int max5970_led_probe(struct platform_device *pdev)
|
||||
dev_err(dev, "Failed to initialize LED %u\n", reg);
|
||||
return ret;
|
||||
}
|
||||
num_leds++;
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Loading…
Reference in New Issue
Block a user