]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: digicolor_wdt: Remove unused variable in dc_wdt_probe
authorNathan Chancellor <natechancellor@gmail.com>
Tue, 9 Jul 2019 20:34:09 +0000 (13:34 -0700)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Mon, 15 Jul 2019 06:49:11 +0000 (08:49 +0200)
commitdb20d90d69c21dee314040e774edfca1cc02e21f
tree10511d22eaf8c077a6d39756c6b0fa04d548f38f
parent2db6e4bf98a83b11d054f745ff4fea16838311fb
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: 4e9c28738050 ("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>
drivers/watchdog/digicolor_wdt.c