Skip to content

Commit

Permalink
timers: Move local variable into else section
Browse files Browse the repository at this point in the history
Fix nit-picking coding style detail.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed May 26, 2010
1 parent 8e63d77 commit 2abfb9e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -747,15 +747,16 @@ 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;

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;
Expand Down

0 comments on commit 2abfb9e

Please sign in to comment.