Commit 262c5e1b authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

staging: dgnc: remove useless variable 'intr_tx'

The 'intr_tx' variable was used only for increasing.
So the 'intr_tx' variable is not useful for this driver.
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ca0d0b88
...@@ -595,7 +595,6 @@ static inline void cls_parse_isr(struct dgnc_board *brd, uint port) ...@@ -595,7 +595,6 @@ static inline void cls_parse_isr(struct dgnc_board *brd, uint port)
/* Transfer data (if any) from Write Queue -> UART. */ /* Transfer data (if any) from Write Queue -> UART. */
spin_lock_irqsave(&ch->ch_lock, flags); spin_lock_irqsave(&ch->ch_lock, flags);
ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM); ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
brd->intr_tx++;
ch->ch_intr_tx++; ch->ch_intr_tx++;
spin_unlock_irqrestore(&ch->ch_lock, flags); spin_unlock_irqrestore(&ch->ch_lock, flags);
cls_copy_data_from_queue_to_uart(ch); cls_copy_data_from_queue_to_uart(ch);
......
...@@ -183,7 +183,6 @@ struct dgnc_board { ...@@ -183,7 +183,6 @@ struct dgnc_board {
uint nasync; /* Number of ports on card */ uint nasync; /* Number of ports on card */
uint irq; /* Interrupt request number */ uint irq; /* Interrupt request number */
ulong intr_tx; /* Count of interrupts */
ulong intr_rx; /* Count of interrupts */ ulong intr_rx; /* Count of interrupts */
ulong membase; /* Start of base memory of the card */ ulong membase; /* Start of base memory of the card */
......
...@@ -410,7 +410,6 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port) ...@@ -410,7 +410,6 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port)
} }
if (isr & UART_IIR_THRI) { if (isr & UART_IIR_THRI) {
brd->intr_tx++;
ch->ch_intr_tx++; ch->ch_intr_tx++;
/* Transfer data (if any) from Write Queue -> UART. */ /* Transfer data (if any) from Write Queue -> UART. */
spin_lock_irqsave(&ch->ch_lock, flags); spin_lock_irqsave(&ch->ch_lock, flags);
...@@ -550,7 +549,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port) ...@@ -550,7 +549,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port)
} }
if (linestatus & UART_LSR_THRE) { if (linestatus & UART_LSR_THRE) {
brd->intr_tx++;
ch->ch_intr_tx++; ch->ch_intr_tx++;
spin_lock_irqsave(&ch->ch_lock, flags); spin_lock_irqsave(&ch->ch_lock, flags);
ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM); 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) ...@@ -559,7 +557,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port)
/* Transfer data (if any) from Write Queue -> UART. */ /* Transfer data (if any) from Write Queue -> UART. */
neo_copy_data_from_queue_to_uart(ch); neo_copy_data_from_queue_to_uart(ch);
} else if (linestatus & UART_17158_TX_AND_FIFO_CLR) { } else if (linestatus & UART_17158_TX_AND_FIFO_CLR) {
brd->intr_tx++;
ch->ch_intr_tx++; ch->ch_intr_tx++;
spin_lock_irqsave(&ch->ch_lock, flags); spin_lock_irqsave(&ch->ch_lock, flags);
ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM); ch->ch_flags |= (CH_TX_FIFO_EMPTY | CH_TX_FIFO_LWM);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment