mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
serial: sccnxp: Remove useless timer_pending() check
sccnxp_timer() is triggered only by timer, so there are no need to check for timer_pending(). Signed-off-by: Alexander Shiyan <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
85878399e7
commit
bee18bdc9c
1 changed files with 1 additions and 3 deletions
|
|
@ -474,9 +474,7 @@ static void sccnxp_timer(unsigned long data)
|
|||
sccnxp_handle_events(s);
|
||||
spin_unlock_irqrestore(&s->lock, flags);
|
||||
|
||||
if (!timer_pending(&s->timer))
|
||||
mod_timer(&s->timer, jiffies +
|
||||
usecs_to_jiffies(s->pdata.poll_time_us));
|
||||
mod_timer(&s->timer, jiffies + usecs_to_jiffies(s->pdata.poll_time_us));
|
||||
}
|
||||
|
||||
static irqreturn_t sccnxp_ist(int irq, void *dev_id)
|
||||
|
|
|
|||
Loading…
Reference in a new issue