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_rx'

The 'ch_intr_rx' variable was used only for increasing.
So the 'ch_intr_rx' 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
4875bb88 2c7d924e

-5
-1
drivers/staging/dgnc/dgnc_cls.c
··· 584 584 /* Receive Interrupt pending */ 585 585 if (isr & (UART_IIR_RDI | UART_IIR_RDI_TIMEOUT)) { 586 586 /* Read data from uart -> queue */ 587 - ch->ch_intr_rx++; 588 587 cls_copy_data_from_uart_to_queue(ch); 589 588 dgnc_check_queue_flow_control(ch); 590 589 }
-2
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_rx; /* Count of interrupts */ 381 - 382 380 /* /proc/<board>/<channel> entries */ 383 381 struct proc_dir_entry *proc_entry_pointer; 384 382 struct dgnc_proc_entry *dgnc_channel_table;
-2
drivers/staging/dgnc/dgnc_neo.c
··· 399 399 400 400 if (isr & (UART_17158_IIR_RDI_TIMEOUT | UART_IIR_RDI)) { 401 401 /* Read data from uart -> queue */ 402 - ch->ch_intr_rx++; 403 402 neo_copy_data_from_uart_to_queue(ch); 404 403 405 404 /* Call our tty layer to enforce queue flow control if needed. */ ··· 511 512 ch->ch_cached_lsr |= linestatus; 512 513 513 514 if (ch->ch_cached_lsr & UART_LSR_DR) { 514 - ch->ch_intr_rx++; 515 515 /* Read data from uart -> queue */ 516 516 neo_copy_data_from_uart_to_queue(ch); 517 517 spin_lock_irqsave(&ch->ch_lock, flags);