Skip to contentSkip to conversation

watchdog: jz4740: Fix unused variable warning in jz4740_wdt_probe

PATCH In review Gustavo A. R. Silva 2 participants 2 messages Aug 6, 2019

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

PATCH 1/1 watchdog: jz4740: Fix unused variable warning in jz4740_wdt_probe

Fix the following warning (Building: ci20_defconfig mips):

drivers/watchdog/jz4740_wdt.c: In function ‘jz4740_wdt_probe’:
drivers/watchdog/jz4740_wdt.c:165:6: warning: unused variable ‘ret’ [-Wunused-variable]

  int ret;
      ^~~
Fixes 9ee644c9326c ("watchdog: jz4740_wdt: drop warning after registering device")
---
 drivers/watchdog/jz4740_wdt.c | 1 -
 1 file changed, 1 deletion(-)
drivers/watchdog/jz4740_wdt.c +0 -1
index d4a90916dd38..c6052ae54f32 100644
@@ -162,7 +162,6 @@ static int jz4740_wdt_probe(struct platform_device *pdev)
 	struct device *dev = &pdev->dev;
 	struct jz4740_wdt_drvdata *drvdata;
 	struct watchdog_device *jz4740_wdt;
-	int ret;
 
 	drvdata = devm_kzalloc(dev, sizeof(struct jz4740_wdt_drvdata),
 			       GFP_KERNEL);
Signature · 1 line
2.22.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Gustavo A. R. Silva

Fix the following warning (Building: ci20_defconfig mips):

drivers/watchdog/jz4740_wdt.c: In function ‘jz4740_wdt_probe’:
drivers/watchdog/jz4740_wdt.c:165:6: warning: unused variable ‘ret’ [-Wunused-variable]

   int ret;
       ^~~
Fixes 9ee644c9326c ("watchdog: jz4740_wdt: drop warning after registering device")
Quoted 17 lines
---
  drivers/watchdog/jz4740_wdt.c | 1 -
  1 file changed, 1 deletion(-)
drivers/watchdog/jz4740_wdt.c +0 -1
index d4a90916dd38..c6052ae54f32 100644
@@ -162,7 +162,6 @@ static int jz4740_wdt_probe(struct platform_device *pdev)
  	struct device *dev = &pdev->dev;
  	struct jz4740_wdt_drvdata *drvdata;
  	struct watchdog_device *jz4740_wdt;
-	int ret;
 
  	drvdata = devm_kzalloc(dev, sizeof(struct jz4740_wdt_drvdata),
  			       GFP_KERNEL);