Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Link: https://github.com/ClangBuiltLinux/linux/issues/591
Reported-by: kernelci.org bot <bot@kernelci.org>
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20190709203409.117123-1-natechancellor@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>

authored by

Nathan Chancellor and committed by
Wim Van Sebroeck
7fb832ae 053bc576

-1
-1
drivers/watchdog/digicolor_wdt.c
··· 118 118 { 119 119 struct device *dev = &pdev->dev; 120 120 struct dc_wdt *wdt; 121 - int ret; 122 121 123 122 wdt = devm_kzalloc(dev, sizeof(struct dc_wdt), GFP_KERNEL); 124 123 if (!wdt)