diff options
author | Nicholas Mc Guire <der.herr@hofr.at> | 2017-03-24 20:03:35 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2017-03-31 10:26:56 +0200 |
commit | 5fc63f9577322d11019b6d357f73f5ce9031f263 (patch) | |
tree | 9bd33330962054d1959488bfb630832aeab58e50 /kernel/time | |
parent | 9005615bafbe03075f4e4fe10874b7abe1918782 (diff) | |
download | linux-stable-5fc63f9577322d11019b6d357f73f5ce9031f263.tar.gz linux-stable-5fc63f9577322d11019b6d357f73f5ce9031f263.tar.bz2 linux-stable-5fc63f9577322d11019b6d357f73f5ce9031f263.zip |
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>
Diffstat (limited to 'kernel/time')
-rw-r--r-- | kernel/time/timekeeping.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c index 5b63a2102c29..9652bc57fd09 100644 --- a/kernel/time/timekeeping.c +++ b/kernel/time/timekeeping.c @@ -996,8 +996,7 @@ static int adjust_historical_crosststamp(struct system_time_snapshot *history, return 0; /* Interpolate shortest distance from beginning or end of history */ - interp_forward = partial_history_cycles > total_history_cycles/2 ? - true : false; + interp_forward = partial_history_cycles > total_history_cycles / 2; partial_history_cycles = interp_forward ? total_history_cycles - partial_history_cycles : partial_history_cycles; |