mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 05:50:19 +00:00
timers: Move local variable into else section
Fix nit-picking coding style detail. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
This commit is contained in:
parent
8e63d7795e
commit
2abfb9e1d4
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user