Commit b3d0ea8d authored by Janani Ravichandran's avatar Janani Ravichandran Committed by Greg Kroah-Hartman

staging: speakup: Eliminate commented out code

This patch removes commented out code as it contributes to code clutter.
Signed-off-by: default avatarJanani Ravichandran <janani.rvchndrn@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent faad1a6c
...@@ -92,8 +92,6 @@ const struct old_serial_port *spk_serial_init(int index) ...@@ -92,8 +92,6 @@ const struct old_serial_port *spk_serial_init(int index)
static irqreturn_t synth_readbuf_handler(int irq, void *dev_id) static irqreturn_t synth_readbuf_handler(int irq, void *dev_id)
{ {
unsigned long flags; unsigned long flags;
/*printk(KERN_ERR "in irq\n"); */
/*pr_warn("in IRQ\n"); */
int c; int c;
spin_lock_irqsave(&speakup_info.spinlock, flags); spin_lock_irqsave(&speakup_info.spinlock, flags);
...@@ -101,8 +99,6 @@ static irqreturn_t synth_readbuf_handler(int irq, void *dev_id) ...@@ -101,8 +99,6 @@ static irqreturn_t synth_readbuf_handler(int irq, void *dev_id)
c = inb_p(speakup_info.port_tts+UART_RX); c = inb_p(speakup_info.port_tts+UART_RX);
synth->read_buff_add((u_char) c); synth->read_buff_add((u_char) c);
/*printk(KERN_ERR "c = %d\n", c); */
/*pr_warn("C = %d\n", c); */
} }
spin_unlock_irqrestore(&speakup_info.spinlock, flags); spin_unlock_irqrestore(&speakup_info.spinlock, flags);
return IRQ_HANDLED; return IRQ_HANDLED;
...@@ -175,9 +171,6 @@ int spk_wait_for_xmitr(void) ...@@ -175,9 +171,6 @@ int spk_wait_for_xmitr(void)
while (!((inb_p(speakup_info.port_tts + UART_MSR)) & UART_MSR_CTS)) { while (!((inb_p(speakup_info.port_tts + UART_MSR)) & UART_MSR_CTS)) {
/* CTS */ /* CTS */
if (--tmout == 0) { if (--tmout == 0) {
/* pr_warn("%s: timed out (cts)\n",
* synth->long_name);
*/
timeouts++; timeouts++;
return 0; return 0;
} }
......
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