Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1916ebfd authored by YueHaibing's avatar YueHaibing Committed by Jacek Anaszewski
Browse files

leds: max77650: Remove set but not used variable 'parent'



Fixes gcc '-Wunused-but-set-variable' warning:

drivers/leds/leds-max77650.c: In function max77650_led_probe:
drivers/leds/leds-max77650.c:67:17: warning: variable parent set but not used [-Wunused-but-set-variable]

It is never used and can be removed.

Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
Signed-off-by: default avatarJacek Anaszewski <jacek.anaszewski@gmail.com>
parent 433068aa
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ static int max77650_led_probe(struct platform_device *pdev)
{
	struct device_node *of_node, *child;
	struct max77650_led *leds, *led;
	struct device *parent;
	struct device *dev;
	struct regmap *map;
	const char *label;
@@ -72,7 +71,6 @@ static int max77650_led_probe(struct platform_device *pdev)
	u32 reg;

	dev = &pdev->dev;
	parent = dev->parent;
	of_node = dev->of_node;

	if (!of_node)