From: Thomas Gleixner Date: Wed, 26 May 2010 14:07:13 +0000 (+0200) Subject: timers: Move local variable into else section X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=2abfb9e1d470f7082e5e20e4b11a271a0124211b;p=linux-beck.git timers: Move local variable into else section Fix nit-picking coding style detail. Signed-off-by: Thomas Gleixner --- diff --git a/kernel/timer.c b/kernel/timer.c index d8decb8d46b0..22118342a456 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -747,7 +747,7 @@ EXPORT_SYMBOL(mod_timer_pending); static inline unsigned long apply_slack(struct timer_list *timer, unsigned long expires) { - unsigned long expires_limit, mask, now; + unsigned long expires_limit, mask; int bit; expires_limit = expires; @@ -755,7 +755,8 @@ unsigned long apply_slack(struct timer_list *timer, unsigned long expires) if (timer->slack >= 0) { expires_limit = expires + timer->slack; } else { - now = jiffies; + unsigned long now = jiffies; + /* No slack, if already expired else auto slack 0.4% */ if (time_after(expires, now)) expires_limit = expires + (expires - now)/256;