Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bee18bdc authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Greg Kroah-Hartman
Browse files

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 85878399
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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)