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

index 449a6bbc521decf2f5930e9c038a81737de989d9..088b54694bb20994bab55db2d48c90decbbcd011 100644 (file)
@@ -595,7 +595,6 @@ static inline void cls_parse_isr(struct dgnc_board *brd, uint port)
                        /* Transfer data (if any) from Write Queue -> UART. */
                        spin_lock_irqsave(&ch->ch_lock, flags);
                        ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
-                       brd->intr_tx++;
                        ch->ch_intr_tx++;
                        spin_unlock_irqrestore(&ch->ch_lock, flags);
                        cls_copy_data_from_queue_to_uart(ch);
index 2caeff7d7f69ba70e971ebdb37e3446ee094d8b6..a8d823b119a02a3e03fa47d2ea7314334dc39ee2 100644 (file)
@@ -183,7 +183,6 @@ struct dgnc_board {
        uint            nasync;         /* Number of ports on card */
 
        uint            irq;            /* Interrupt request number */
-       ulong           intr_tx;        /* Count of interrupts */
        ulong           intr_rx;        /* Count of interrupts */
 
        ulong           membase;        /* Start of base memory of the card */
index a3e100b88d6c31cf3fca53802cf1c62b6ec90a8f..5f3eacdf716abf0bcb37c85528f6b09014919480 100644 (file)
@@ -410,7 +410,6 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port)
                }
 
                if (isr & UART_IIR_THRI) {
-                       brd->intr_tx++;
                        ch->ch_intr_tx++;
                        /* Transfer data (if any) from Write Queue -> UART. */
                        spin_lock_irqsave(&ch->ch_lock, flags);
@@ -550,7 +549,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port)
        }
 
        if (linestatus & UART_LSR_THRE) {
-               brd->intr_tx++;
                ch->ch_intr_tx++;
                spin_lock_irqsave(&ch->ch_lock, flags);
                ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
@@ -559,7 +557,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port)
                /* Transfer data (if any) from Write Queue -> UART. */
                neo_copy_data_from_queue_to_uart(ch);
        } else if (linestatus & UART_17158_TX_AND_FIFO_CLR) {
-               brd->intr_tx++;
                ch->ch_intr_tx++;
                spin_lock_irqsave(&ch->ch_lock, flags);
                ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);