We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e72f1f commit d3578b4Copy full SHA for d3578b4
drivers/leds/leds-max5970.c
@@ -45,7 +45,7 @@ static int max5970_led_probe(struct platform_device *pdev)
45
struct regmap *regmap;
46
struct device_node *led_node, *child;
47
struct max5970_led *ddata;
48
- int ret = -ENODEV, num_leds = 0;
+ int ret = -ENODEV;
49
50
regmap = dev_get_regmap(pdev->dev.parent, NULL);
51
if (!regmap)
@@ -89,7 +89,6 @@ static int max5970_led_probe(struct platform_device *pdev)
89
dev_err(dev, "Failed to initialize LED %u\n", reg);
90
return ret;
91
}
92
- num_leds++;
93
94
95
0 commit comments