* [patch] hrtimer: cleanup: remove unneeded assignment
@ 2010-05-07 8:25 Dan Carpenter
0 siblings, 0 replies; only message in thread
From: Dan Carpenter @ 2010-05-07 8:25 UTC (permalink / raw)
To: Thomas Gleixner
Cc: Ingo Molnar, Arun R Bharadwaj, Peter Zijlstra, linux-kernel,
Arjan van de Ven
We don't need to store "base" anymore after cc584b213f25: "hrtimer:
convert kernel/* to the new hrtimer apis".
Signed-off-by: Dan Carpenter <error27@gmail.com>
diff --git a/kernel/hrtimer.c b/kernel/hrtimer.c
index 0086628..e13e514 100644
--- a/kernel/hrtimer.c
+++ b/kernel/hrtimer.c
@@ -1096,11 +1096,10 @@ EXPORT_SYMBOL_GPL(hrtimer_cancel);
*/
ktime_t hrtimer_get_remaining(const struct hrtimer *timer)
{
- struct hrtimer_clock_base *base;
unsigned long flags;
ktime_t rem;
- base = lock_hrtimer_base(timer, &flags);
+ lock_hrtimer_base(timer, &flags);
rem = hrtimer_expires_remaining(timer);
unlock_hrtimer_base(timer, &flags);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2010-05-07 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-07 8:25 [patch] hrtimer: cleanup: remove unneeded assignment Dan Carpenter
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.