watchdog: test_bit() => watchdog_active()
authorBumsik Kim <kbumsik@gmail.com>
Fri, 29 May 2020 01:24:28 +0000 (10:24 +0900)
committerWim Van Sebroeck <wim@linux-watchdog.org>
Wed, 5 Aug 2020 16:42:46 +0000 (18:42 +0200)
commit0be01476dd527dfa00976911208332c706a1b752
treec90eb995d4f7b6a167263b9dc2690056e5a41a7d
parentd6e6d5627f0aaa16d6b6e94238d62a594a35b5ce
watchdog: test_bit() => watchdog_active()

Use the dedicated function watchdog_active()
instead of the generic test_bit() function.

It is done using the following Coccinelle script:

@@
identifier wdd;
@@
- test_bit(WDOG_ACTIVE, &wdd->status)
+ watchdog_active(wdd)

Signed-off-by: Bumsik Kim <k.bumsik@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Link: https://lore.kernel.org/r/20200529012428.84684-1-k.bumsik@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@linux-watchdog.org>
drivers/watchdog/watchdog_dev.c