From: Paul E. McKenney Date: Fri, 23 Jun 2017 23:07:17 +0000 (-0700) Subject: rcutorture: Eliminate unused ts_rem local from rcu_trace_clock_local() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a3b7b6c2739caf996b95a0164b5b4541c27630c3;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git rcutorture: Eliminate unused ts_rem local from rcu_trace_clock_local() This commit removes an unused local variable named ts_rem that is marked __maybe_unused. Yes, the variable was assigned to, but it was never used beyond that point, hence not needed. Signed-off-by: Paul E. McKenney --- diff --git a/kernel/rcu/rcutorture.c b/kernel/rcu/rcutorture.c index 75ac749ced7c..6e3f644280ee 100644 --- a/kernel/rcu/rcutorture.c +++ b/kernel/rcu/rcutorture.c @@ -199,7 +199,8 @@ MODULE_PARM_DESC(torture_runnable, "Start rcutorture at boot"); static u64 notrace rcu_trace_clock_local(void) { u64 ts = trace_clock_local(); - unsigned long __maybe_unused ts_rem = do_div(ts, NSEC_PER_USEC); + + (void)do_div(ts, NSEC_PER_USEC); return ts; } #else /* #ifdef CONFIG_RCU_TRACE */