Commit 572f4f61 authored by Daeseok Youn's avatar Daeseok Youn Committed by Greg Kroah-Hartman

staging: dgnc: remove useless variable 'intr_rx'

The 'intr_rx' variable was used only for increasing.
So the 'intr_rx' 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 262c5e1b
...@@ -584,7 +584,6 @@ static inline void cls_parse_isr(struct dgnc_board *brd, uint port) ...@@ -584,7 +584,6 @@ static inline void cls_parse_isr(struct dgnc_board *brd, uint port)
/* Receive Interrupt pending */ /* Receive Interrupt pending */
if (isr & (UART_IIR_RDI | UART_IIR_RDI_TIMEOUT)) { if (isr & (UART_IIR_RDI | UART_IIR_RDI_TIMEOUT)) {
/* Read data from uart -> queue */ /* Read data from uart -> queue */
brd->intr_rx++;
ch->ch_intr_rx++; ch->ch_intr_rx++;
cls_copy_data_from_uart_to_queue(ch); cls_copy_data_from_uart_to_queue(ch);
dgnc_check_queue_flow_control(ch); dgnc_check_queue_flow_control(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_rx; /* Count of interrupts */
ulong membase; /* Start of base memory of the card */ ulong membase; /* Start of base memory of the card */
ulong membase_end; /* End of base memory of the card */ ulong membase_end; /* End of base memory of the card */
......
...@@ -399,7 +399,6 @@ static inline void neo_parse_isr(struct dgnc_board *brd, uint port) ...@@ -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)) { if (isr & (UART_17158_IIR_RDI_TIMEOUT | UART_IIR_RDI)) {
/* Read data from uart -> queue */ /* Read data from uart -> queue */
brd->intr_rx++;
ch->ch_intr_rx++; ch->ch_intr_rx++;
neo_copy_data_from_uart_to_queue(ch); neo_copy_data_from_uart_to_queue(ch);
...@@ -515,7 +514,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port) ...@@ -515,7 +514,6 @@ static inline void neo_parse_lsr(struct dgnc_board *brd, uint port)
ch->ch_cached_lsr |= linestatus; ch->ch_cached_lsr |= linestatus;
if (ch->ch_cached_lsr & UART_LSR_DR) { if (ch->ch_cached_lsr & UART_LSR_DR) {
brd->intr_rx++;
ch->ch_intr_rx++; ch->ch_intr_rx++;
/* Read data from uart -> queue */ /* Read data from uart -> queue */
neo_copy_data_from_uart_to_queue(ch); neo_copy_data_from_uart_to_queue(ch);
......
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