diff options
author | Manuel Schölling <manuel.schoelling@gmx.de> | 2014-05-25 20:07:02 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-05-25 11:53:44 -0700 |
commit | 7879be810c05e7a1e6ef0dde65ad730d704535df (patch) | |
tree | c44316faac58e1b6606de05626baf19caff672c3 /drivers/staging/dgnc | |
parent | bd215fb98cbb630a8736c58bbb2c12ee8caaeb6b (diff) | |
download | linux-7879be810c05e7a1e6ef0dde65ad730d704535df.tar.gz linux-7879be810c05e7a1e6ef0dde65ad730d704535df.tar.bz2 linux-7879be810c05e7a1e6ef0dde65ad730d704535df.zip |
staging: dgnc: Use time_after_eq()
To be future-proof and for better readability the time comparisons are
modified to use time_after_eq() instead of plain, error-prone math.
Signed-off-by: Manuel Schölling <manuel.schoelling@gmx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r-- | drivers/staging/dgnc/dgnc_neo.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_neo.c b/drivers/staging/dgnc/dgnc_neo.c index 2d472e643b01..9de988cc892b 100644 --- a/drivers/staging/dgnc/dgnc_neo.c +++ b/drivers/staging/dgnc/dgnc_neo.c @@ -395,7 +395,8 @@ static inline void neo_clear_break(struct channel_t *ch, int force) /* Turn break off, and unset some variables */ if (ch->ch_flags & CH_BREAK_SENDING) { - if ((jiffies >= ch->ch_stop_sending_break) || force) { + if (time_after_eq(jiffies, ch->ch_stop_sending_break) + || force) { uchar temp = readb(&ch->ch_neo_uart->lcr); writeb((temp & ~UART_LCR_SBC), &ch->ch_neo_uart->lcr); neo_pci_posting_flush(ch->ch_bd); |