summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-05-25 17:19:41 +0300
committerJacek Anaszewski <jacek.anaszewski@gmail.com>2019-05-26 20:00:14 +0300
commit1916ebfdfbacd3fa9a6fce72032cf612375c1183 (patch)
treebadb2b0443cd402bd5d7898eda9e8d6098af4f00 /drivers
parent433068aa88cc1046db0adf0d158d98f59d846bbc (diff)
downloadlinux-1916ebfdfbacd3fa9a6fce72032cf612375c1183.tar.xz
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: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/leds/leds-max77650.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/leds/leds-max77650.c b/drivers/leds/leds-max77650.c
index 6b74ce9cac12..8a8e5c65b157 100644
--- a/drivers/leds/leds-max77650.c
+++ b/drivers/leds/leds-max77650.c
@@ -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)