diff options
| author | Alexander Shiyan <shc_work@mail.ru> | 2014-05-24 04:50:26 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-28 15:41:58 -0400 |
| commit | bee18bdc9c0f383428cbf8c955b7bb8e6cc0d090 (patch) | |
| tree | 2c012745d7204904d2570cfa96988454d92991c5 /drivers/tty | |
| parent | 85878399e7bf14bc36d191d3a0de54b2a40f29e7 (diff) | |
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 <shc_work@mail.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
| -rw-r--r-- | drivers/tty/serial/sccnxp.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/tty/serial/sccnxp.c b/drivers/tty/serial/sccnxp.c index a447f71538ef..3f5d40a060e0 100644 --- a/drivers/tty/serial/sccnxp.c +++ b/drivers/tty/serial/sccnxp.c | |||
| @@ -474,9 +474,7 @@ static void sccnxp_timer(unsigned long data) | |||
| 474 | sccnxp_handle_events(s); | 474 | sccnxp_handle_events(s); |
| 475 | spin_unlock_irqrestore(&s->lock, flags); | 475 | spin_unlock_irqrestore(&s->lock, flags); |
| 476 | 476 | ||
| 477 | if (!timer_pending(&s->timer)) | 477 | mod_timer(&s->timer, jiffies + usecs_to_jiffies(s->pdata.poll_time_us)); |
| 478 | mod_timer(&s->timer, jiffies + | ||
| 479 | usecs_to_jiffies(s->pdata.poll_time_us)); | ||
| 480 | } | 478 | } |
| 481 | 479 | ||
| 482 | static irqreturn_t sccnxp_ist(int irq, void *dev_id) | 480 | static irqreturn_t sccnxp_ist(int irq, void *dev_id) |
