Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

stalinsrinivasan.s and committed by
Greg Kroah-Hartman
f0dcc9fa 9979ef7d

+1 -1
+1 -1
drivers/staging/dgnc/dgnc_cls.c
··· 389 389 390 390 /* Turn break off, and unset some variables */ 391 391 if (ch->ch_flags & CH_BREAK_SENDING) { 392 - if ((jiffies >= ch->ch_stop_sending_break) || force) { 392 + if (time_after(jiffies, ch->ch_stop_sending_break) || force) { 393 393 uchar temp = readb(&ch->ch_cls_uart->lcr); 394 394 writeb((temp & ~UART_LCR_SBC), &ch->ch_cls_uart->lcr); 395 395 ch->ch_flags &= ~(CH_BREAK_SENDING);