Skip to contentSkip to conversation

drm/komeda: Remove unused variable

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Jan 18, 2019 – Jan 21, 2019

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/komeda: Remove unused variable

Remove unused variable *pdev* in komeda_parse_dt():

drivers/gpu/drm/arm/display/komeda//komeda_dev.c: In function ‘komeda_parse_dt’:
drivers/gpu/drm/arm/display/komeda//komeda_dev.c:52:26: warning: unused variable ‘pdev’ [-Wunused-variable]

  struct platform_device *pdev = to_platform_device(dev);
                          ^~~~
Fixes 7e8d4fcf8daf ("drm: arm/komeda: Remove IRQ parsing from initial series")
---
 drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_dev.c +0 -1
index 16f4e72abc1a..0fe6954fbbf4 100644
@@ -49,7 +49,6 @@ static int komeda_parse_pipe_dt(struct komeda_dev *mdev, struct device_node *np)
 
 static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev)
 {
-	struct platform_device *pdev = to_platform_device(dev);
 	struct device_node *child, *np = dev->of_node;
 	struct clk *clk;
 	int ret;
Signature · 1 line
2.20.1
#1 lore raw

Hi Gustavo:

Thank you for helping fix this problem

Quoted 9 lines · Gustavo A. R. Silva

Remove unused variable *pdev* in komeda_parse_dt():

drivers/gpu/drm/arm/display/komeda//komeda_dev.c: In function ‘komeda_parse_dt’:
drivers/gpu/drm/arm/display/komeda//komeda_dev.c:52:26: warning: unused variable ‘pdev’ [-Wunused-variable]

  struct platform_device *pdev = to_platform_device(dev);
                          ^~~~
Fixes 7e8d4fcf8daf ("drm: arm/komeda: Remove IRQ parsing from initial series")
Quoted 9 lines
---
 drivers/gpu/drm/arm/display/komeda/komeda_dev.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/arm/display/komeda/komeda_dev.c +0 -0
index 16f4e72abc1a..0fe6954fbbf4 100644

drivers/gpu/drm/arm/display/komeda/komeda_dev.c static int komeda_parse_pipe_dt(struct komeda_dev *mdev, struct device_node *np) · line 54

Quoted 7 lines
drivers/gpu/drm/arm/display/komeda/komeda_dev.c +0 -1
@@ -49,7 +49,6 @@ static int komeda_parse_pipe_dt(struct komeda_dev *mdev, struct device_node *np)
 
 static int komeda_parse_dt(struct device *dev, struct komeda_dev *mdev)
 {
-struct platform_device *pdev = to_platform_device(dev);
 struct device_node *child, *np = dev->of_node;
 struct clk *clk;
 int ret;

IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you.