staging: dgnc: remove useless variable 'intr_rx'
authorDaeseok Youn <daeseok.youn@gmail.com>
Wed, 6 Jul 2016 06:18:25 +0000 (15:18 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Aug 2016 17:13:26 +0000 (19:13 +0200)
The 'intr_rx' variable was used only for increasing.
So the '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>
drivers/staging/dgnc/dgnc_cls.c
drivers/staging/dgnc/dgnc_driver.h
drivers/staging/dgnc/dgnc_neo.c

index 088b54694bb20994bab55db2d48c90decbbcd011..31fcf04179f31602cb8f317af9fd41105ae3babc 100644 (file)
@@ -584,7 +584,6 @@ static inline void cls_parse_isr(struct dgnc_board *brd, uint port)
                /* Receive Interrupt pending */
                if (isr & (UART_IIR_RDI | UART_IIR_RDI_TIMEOUT)) {
                        /* Read data from uart -> queue */
-                       brd->intr_rx++;
                        ch->ch_intr_rx++;
                        cls_copy_data_from_uart_to_queue(ch);
                        dgnc_check_queue_flow_control(ch);
index a8d823b119a02a3e03fa47d2ea7314334dc39ee2..914130dbf05fba62b00a72fa5c915d959fa9c8b1 100644 (file)
@@ -183,7 +183,6 @@ struct dgnc_board {
        uint            nasync;         /* Number of ports on card */
 
        uint            irq;            /* Interrupt request number */
-       ulong           intr_rx;        /* Count of interrupts */
 
        ulong           membase;        /* Start of base memory of the card */
        ulong           membase_end;    /* End of base memory of the card */
index 5f3eacdf716abf0bcb37c85528f6b09014919480..f99c0db0b6d6ba11e76daff9a5c94cac58be13cb 100644 (file)
@@ -399,7 +399,6 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port)
 
                if (isr & (UART_17158_IIR_RDI_TIMEOUT | UART_IIR_RDI)) {
                        /* Read data from uart -> queue */
-                       brd->intr_rx++;
                        ch->ch_intr_rx++;
                        neo_copy_data_from_uart_to_queue(ch);
 
@@ -515,7 +514,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port)
        ch->ch_cached_lsr |= linestatus;
 
        if (ch->ch_cached_lsr & UART_LSR_DR) {
-               brd->intr_rx++;
                ch->ch_intr_rx++;
                /* Read data from uart -> queue */
                neo_copy_data_from_uart_to_queue(ch);