aboutsummaryrefslogtreecommitdiff
path: root/drivers/staging/dgnc
diff options
context:
space:
mode:
authorstalinsrinivasan.s <stalinsrinivasan.subramanian@in.bosch.com>2013-12-20 22:03:27 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-20 08:54:46 -0800
commitf0dcc9fa42a21d850178b53586f9bd5d6fc94e12 (patch)
tree6934b61ae6a1e4bd99e36455e7bedf3f1623592e /drivers/staging/dgnc
parent9979ef7d736cb7ea5f7d1ec58c95ab9b651012e6 (diff)
downloadlinux-stericsson-f0dcc9fa42a21d850178b53586f9bd5d6fc94e12.tar.gz
staging: dgnc: fix checkpatch.pl usage of comparison with jiffies
This is a patch to the dgnc_cls.c file that fixes up comparison with jiffies usage warning found by the checkpatch.pl tool Signed-off-by: S. Stalin Srinivasan <stalinsrinivasan.s@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc')
-rw-r--r--drivers/staging/dgnc/dgnc_cls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/dgnc/dgnc_cls.c b/drivers/staging/dgnc/dgnc_cls.c
index 8697698921aa..708adbbcedbd 100644
--- a/drivers/staging/dgnc/dgnc_cls.c
+++ b/drivers/staging/dgnc/dgnc_cls.c
@@ -389,7 +389,7 @@ static inline void cls_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(jiffies, ch->ch_stop_sending_break) || force) {
uchar temp = readb(&ch->ch_cls_uart->lcr);
writeb((temp & ~UART_LCR_SBC), &ch->ch_cls_uart->lcr);
ch->ch_flags &= ~(CH_BREAK_SENDING);