提交 a3b7b6c2 编写于 作者: P Paul E. McKenney

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: NPaul E. McKenney <paulmck@linux.vnet.ibm.com>
上级 808de39c
...@@ -199,7 +199,8 @@ MODULE_PARM_DESC(torture_runnable, "Start rcutorture at boot"); ...@@ -199,7 +199,8 @@ MODULE_PARM_DESC(torture_runnable, "Start rcutorture at boot");
static u64 notrace rcu_trace_clock_local(void) static u64 notrace rcu_trace_clock_local(void)
{ {
u64 ts = trace_clock_local(); 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; return ts;
} }
#else /* #ifdef CONFIG_RCU_TRACE */ #else /* #ifdef CONFIG_RCU_TRACE */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册