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

staging: dgnc: remove useless variable 'ch_intr_tx'

The 'ch_intr_tx' variable was used only for increasing.
So the 'ch_intr_tx' variable is not useful for this driver.

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Daeseok Youn and committed by
Greg Kroah-Hartman
2c7d924e 74c900f5

-5
-1
drivers/staging/dgnc/dgnc_cls.c
··· 594 594 /* Transfer data (if any) from Write Queue -> UART. */ 595 595 spin_lock_irqsave(&ch->ch_lock, flags); 596 596 ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM); 597 - ch->ch_intr_tx++; 598 597 spin_unlock_irqrestore(&ch->ch_lock, flags); 599 598 cls_copy_data_from_queue_to_uart(ch); 600 599 }
-1
drivers/staging/dgnc/dgnc_driver.h
··· 377 377 ulong ch_xon_sends; /* Count of xons transmitted */ 378 378 ulong ch_xoff_sends; /* Count of xoffs transmitted */ 379 379 380 - ulong ch_intr_tx; /* Count of interrupts */ 381 380 ulong ch_intr_rx; /* Count of interrupts */ 382 381 383 382 /* /proc/<board>/<channel> entries */
-3
drivers/staging/dgnc/dgnc_neo.c
··· 409 409 } 410 410 411 411 if (isr & UART_IIR_THRI) { 412 - ch->ch_intr_tx++; 413 412 /* Transfer data (if any) from Write Queue -> UART. */ 414 413 spin_lock_irqsave(&ch->ch_lock, flags); 415 414 ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM); ··· 545 546 } 546 547 547 548 if (linestatus & UART_LSR_THRE) { 548 - ch->ch_intr_tx++; 549 549 spin_lock_irqsave(&ch->ch_lock, flags); 550 550 ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM); 551 551 spin_unlock_irqrestore(&ch->ch_lock, flags); ··· 552 554 /* Transfer data (if any) from Write Queue -> UART. */ 553 555 neo_copy_data_from_queue_to_uart(ch); 554 556 } else if (linestatus & UART_17158_TX_AND_FIFO_CLR) { 555 - ch->ch_intr_tx++; 556 557 spin_lock_irqsave(&ch->ch_lock, flags); 557 558 ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM); 558 559 spin_unlock_irqrestore(&ch->ch_lock, flags);