watchdog: jz4740: Fix unused variable warning in jz4740_wdt_probe
Subsystems (2)
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")
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/watchdog/jz4740_wdt.c | 1 - 1 file changed, 1 deletion(-)
drivers/watchdog/jz4740_wdt.c +0 -1
@@ -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
Quoted 8 lines · Gustavo A. R. Silva
Fix the following warning (Building:
ci20_defconfigmips):
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")Signed-off-by Gustavo A. R. Silva <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 17 lines
--- drivers/watchdog/jz4740_wdt.c | 1 - 1 file changed, 1 deletion(-)drivers/watchdog/jz4740_wdt.c +0
-1@@ -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 );