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

timekeeping: Remove pointless conversion to bool

interp_forward is type bool so assignment from a logical operation directly
is sufficient.

Signed-off-by: Nicholas Mc Guire <der.herr@hofr.at>
Cc: "Christopher S. Hall" <christopher.s.hall@intel.com>
Cc: John Stultz <john.stultz@linaro.org>
Link: http://lkml.kernel.org/r/1490382215-30505-1-git-send-email-der.herr@hofr.at
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

authored by

Nicholas Mc Guire and committed by
Thomas Gleixner
5fc63f95 9005615b

+1 -2
+1 -2
kernel/time/timekeeping.c
··· 996 996 return 0; 997 997 998 998 /* Interpolate shortest distance from beginning or end of history */ 999 - interp_forward = partial_history_cycles > total_history_cycles/2 ? 1000 - true : false; 999 + interp_forward = partial_history_cycles > total_history_cycles / 2; 1001 1000 partial_history_cycles = interp_forward ? 1002 1001 total_history_cycles - partial_history_cycles : 1003 1002 partial_history_cycles;