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

The 'ch_intr_modem' variable was used only for increasing.
So the 'ch_intr_modem' 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
74c900f5 572f4f61

-11
-9
drivers/staging/dgnc/dgnc_cls.c
··· 599 599 cls_copy_data_from_queue_to_uart(ch); 600 600 } 601 601 602 - /* CTS/RTS change of state */ 603 - if (isr & UART_IIR_CTSRTS) { 604 - ch->ch_intr_modem++; 605 - /* 606 - * Don't need to do anything, the cls_parse_modem 607 - * below will grab the updated modem signals. 608 - */ 609 - } 610 - 611 602 /* Parse any modem signal changes */ 612 603 cls_parse_modem(ch, readb(&ch->ch_cls_uart->msr)); 613 604 }
-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_modem; /* Count of interrupts */ 381 380 ulong ch_intr_tx; /* Count of interrupts */ 382 381 ulong ch_intr_rx; /* Count of interrupts */ 383 382
-1
drivers/staging/dgnc/dgnc_neo.c
··· 450 450 * If we get here, this means the hardware is doing auto flow control. 451 451 * Check to see whether RTS/DTR or CTS/DSR caused this interrupt. 452 452 */ 453 - ch->ch_intr_modem++; 454 453 cause = readb(&ch->ch_neo_uart->mcr); 455 454 /* Which pin is doing auto flow? RTS or DTR? */ 456 455 if ((cause & 0x4) == 0) {