projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9005615
)
timekeeping: Remove pointless conversion to bool
author
Nicholas Mc Guire
<der.herr@hofr.at>
Fri, 24 Mar 2017 19:03:35 +0000
(20:03 +0100)
committer
Thomas Gleixner
<tglx@linutronix.de>
Fri, 31 Mar 2017 08:26:56 +0000
(10:26 +0200)
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>
kernel/time/timekeeping.c
patch
|
blob
|
blame
|
history
diff --git
a/kernel/time/timekeeping.c
b/kernel/time/timekeeping.c
index 5b63a2102c2907bc42a870fe2545bafdb10cdf28..9652bc57fd09811fa4e3ffbabc81b9139e75f125 100644
(file)
--- 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;