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

index b9955be84062ebd84159e6b175b2a742efd1ecfe..35b59ca27759c07a089fff27d614ec550e1b0dbb 100644 (file)
@@ -594,7 +594,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);
-                       ch->ch_intr_tx++;
                        spin_unlock_irqrestore(&ch->ch_lock, flags);
                        cls_copy_data_from_queue_to_uart(ch);
                }
index 10633880fc22a31957e8556ff02e1c9a1ebf9992..8bdf556e8df92f627942100702627854b199cfc2 100644 (file)
@@ -377,7 +377,6 @@ struct channel_t {
        ulong           ch_xon_sends;   /* Count of xons transmitted */
        ulong           ch_xoff_sends;  /* Count of xoffs transmitted */
 
-       ulong           ch_intr_tx;     /* Count of interrupts */
        ulong           ch_intr_rx;     /* Count of interrupts */
 
        /* /proc/<board>/<channel> entries */
index 9b3264c2f16ee4e810c83c574575b81eae939412..574a22767100bafdc412a374a14f49337bf28f13 100644 (file)
@@ -409,7 +409,6 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port)
                }
 
                if (isr & UART_IIR_THRI) {
-                       ch->ch_intr_tx++;
                        /* 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);
@@ -546,7 +545,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port)
        }
 
        if (linestatus & UART_LSR_THRE) {
-               ch->ch_intr_tx++;
                spin_lock_irqsave(&ch->ch_lock, flags);
                ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
                spin_unlock_irqrestore(&ch->ch_lock, flags);
@@ -554,7 +552,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) {
-               ch->ch_intr_tx++;
                spin_lock_irqsave(&ch->ch_lock, flags);
                ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
                spin_unlock_irqrestore(&ch->ch_lock, flags);