watchdog: digicolor_wdt: Remove unused variable in dc_wdt_probe
PATCH 1/1 watchdog: digicolor_wdt: Remove unused variable in dc_wdt_probe
clang warns:
drivers/watchdog/digicolor_wdt.c:121:6: warning: unused variable 'ret' [-Wunused-variable]
int ret;
^1 warning generated.
It's unused now, remove it.
Fixes cdad26977e3f ("watchdog: digicolor_wdt: drop warning after registering device")
Reported-by kernelci.org bot <[email protected]>
Signed-off-by Nathan Chancellor <[email protected]>
--- drivers/watchdog/digicolor_wdt.c | 1 - 1 file changed, 1 deletion(-)
drivers/watchdog/digicolor_wdt.c +0 -1
@@ -118,7 +118,6 @@ static int dc_wdt_probe(struct platform_device *pdev) {struct device *dev = &pdev->dev;struct dc_wdt *wdt; -int ret; wdt =devm_kzalloc (dev,sizeof (struct dc_wdt ),GFP_KERNEL );if (!wdt)
Signature · 1 line
2.22.0
Quoted 6 lines · Nathan Chancellor
clang warns:
drivers/watchdog/digicolor_wdt.c:121:6: warning: unused variable 'ret' [-Wunused-variable]int ret; ^
Quoted 8 lines
1 warning generated.
It's unused now, remove it.
Fixes cdad26977e3f ("watchdog: digicolor_wdt: drop warning after registering device")Reported-by kernelci.org bot <[email protected]>Signed-off-by Nathan Chancellor <[email protected]>
Reviewed-by Guenter Roeck <[email protected]>
Quoted 19 lines
--- drivers/watchdog/digicolor_wdt.c | 1 - 1 file changed, 1 deletion(-)drivers/watchdog/digicolor_wdt.c +0
-1@@ -118,7 +118,6 @@ static int dc_wdt_probe(struct platform_device *pdev) {struct device *dev = &pdev->dev;struct dc_wdt *wdt; -int ret; wdt =devm_kzalloc (dev,sizeof (struct dc_wdt ),GFP_KERNEL );if (!wdt)Signature · 1 line
2.22.0
Quoted 6 lines · Nathan Chancellor
clang warns:
drivers/watchdog/digicolor_wdt.c:121:6: warning: unused variable 'ret' [-Wunused-variable]int ret; ^
Quoted 8 lines
1 warning generated.
It's unused now, remove it.
Fixes cdad26977e3f ("watchdog: digicolor_wdt: drop warning after registering device")Reported-by kernelci.org bot <[email protected]>Signed-off-by Nathan Chancellor <[email protected]>
Oops, sorry for missing this. I wonder why buildbot neither did find it... Anyway:
Reviewed-by Wolfram Sang <[email protected]>