Commit 86b4e7e2 authored by Giedrius Statkevičius's avatar Giedrius Statkevičius Committed by Greg Kroah-Hartman

staging: dgnc: remove some dead code from dgnc_tty.c

Remove some dead code that will never be executed or which serves no purpose
Signed-off-by: default avatarGiedrius Statkevičius <giedrius.statkevicius@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 69e98df7
...@@ -428,9 +428,6 @@ void dgnc_tty_uninit(struct dgnc_board *brd) ...@@ -428,9 +428,6 @@ void dgnc_tty_uninit(struct dgnc_board *brd)
brd->PrintDriver.ttys = NULL; brd->PrintDriver.ttys = NULL;
} }
#define TMPBUFLEN (1024)
/*======================================================================= /*=======================================================================
* *
* dgnc_wmove - Write data to transmit queue. * dgnc_wmove - Write data to transmit queue.
...@@ -555,15 +552,6 @@ void dgnc_input(struct channel_t *ch) ...@@ -555,15 +552,6 @@ void dgnc_input(struct channel_t *ch)
ld = tty_ldisc_ref(tp); ld = tty_ldisc_ref(tp);
#ifdef TTY_DONT_FLIP
/*
* If the DONT_FLIP flag is on, don't flush our buffer, and act
* like the ld doesn't have any space to put the data right now.
*/
if (test_bit(TTY_DONT_FLIP, &tp->flags))
len = 0;
#endif
/* /*
* If we were unable to get a reference to the ld, * If we were unable to get a reference to the ld,
* don't flush our buffer, and act like the ld doesn't * don't flush our buffer, and act like the ld doesn't
...@@ -897,10 +885,6 @@ void dgnc_check_queue_flow_control(struct channel_t *ch) ...@@ -897,10 +885,6 @@ void dgnc_check_queue_flow_control(struct channel_t *ch)
ch->ch_stops_sent = 0; ch->ch_stops_sent = 0;
ch->ch_bd->bd_ops->send_start_character(ch); ch->ch_bd->bd_ops->send_start_character(ch);
} }
/* No FLOW */
else {
/* Nothing needed. */
}
} }
} }
......
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