mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-04 10:56:06 -04:00
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9979ef7d73
commit
f0dcc9fa42
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user