From: Yaowei Bai Date: Fri, 6 Nov 2015 02:44:24 +0000 (-0800) Subject: kernel/watchdog.c: is_hardlockup can be boolean X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=451637e454f0b41689cd07cdc3fa53388c22890d;p=openwrt%2Fstaging%2Fblogic.git kernel/watchdog.c: is_hardlockup can be boolean Make is_hardlockup return bool to improve readability due to this particular function only using either one or zero as its return value. No functional change. Signed-off-by: Yaowei Bai Reviewed-by: Aaron Tomlin Acked-by: Don Zickus Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/watchdog.c b/kernel/watchdog.c index 64ed1c37bd1f..568ba64b22d6 100644 --- a/kernel/watchdog.c +++ b/kernel/watchdog.c @@ -263,15 +263,15 @@ void touch_softlockup_watchdog_sync(void) #ifdef CONFIG_HARDLOCKUP_DETECTOR /* watchdog detector functions */ -static int is_hardlockup(void) +static bool is_hardlockup(void) { unsigned long hrint = __this_cpu_read(hrtimer_interrupts); if (__this_cpu_read(hrtimer_interrupts_saved) == hrint) - return 1; + return true; __this_cpu_write(hrtimer_interrupts_saved, hrint); - return 0; + return false; } #endif