Commit 2abfb9e1 authored by Thomas Gleixner's avatar Thomas Gleixner

timers: Move local variable into else section

Fix nit-picking coding style detail.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 8e63d779
...@@ -747,7 +747,7 @@ EXPORT_SYMBOL(mod_timer_pending); ...@@ -747,7 +747,7 @@ EXPORT_SYMBOL(mod_timer_pending);
static inline static inline
unsigned long apply_slack(struct timer_list *timer, unsigned long expires) unsigned long apply_slack(struct timer_list *timer, unsigned long expires)
{ {
unsigned long expires_limit, mask, now; unsigned long expires_limit, mask;
int bit; int bit;
expires_limit = expires; expires_limit = expires;
...@@ -755,7 +755,8 @@ unsigned long apply_slack(struct timer_list *timer, unsigned long expires) ...@@ -755,7 +755,8 @@ unsigned long apply_slack(struct timer_list *timer, unsigned long expires)
if (timer->slack >= 0) { if (timer->slack >= 0) {
expires_limit = expires + timer->slack; expires_limit = expires + timer->slack;
} else { } else {
now = jiffies; unsigned long now = jiffies;
/* No slack, if already expired else auto slack 0.4% */ /* No slack, if already expired else auto slack 0.4% */
if (time_after(expires, now)) if (time_after(expires, now))
expires_limit = expires + (expires - now)/256; expires_limit = expires + (expires - now)/256;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment