aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/8250/8250.c
diff options
context:
space:
mode:
authorPaul Gortmaker <paul.gortmaker@windriver.com>2012-03-08 19:12:10 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-03-09 15:47:56 -0500
commit0d263a264c4b8376ccf33248f6fac873310e5e05 (patch)
treebb88e8c19f1cc419a5794b263d2abadad329935a /drivers/tty/serial/8250/8250.c
parent3f0ab32753b49ae7afc5b69e3f23152d92aa1f85 (diff)
serial: delete useless void casts in 8250.c
These might have worked some magic with an ancient gcc back in 1992, but "objdump --disassemble" on gcc 4.6 on x86-64 shows identical output before and after this commit. Send the casts and their hysterical rasins to the bitbucket. Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/8250/8250.c')
-rw-r--r--drivers/tty/serial/8250/8250.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/tty/serial/8250/8250.c b/drivers/tty/serial/8250/8250.c
index 4009e2438e4..6a71716111a 100644
--- a/drivers/tty/serial/8250/8250.c
+++ b/drivers/tty/serial/8250/8250.c
@@ -1218,7 +1218,7 @@ static void autoconfig_irq(struct uart_8250_port *up)
1218 ICP = (up->port.iobase & 0xfe0) | 0x1f; 1218 ICP = (up->port.iobase & 0xfe0) | 0x1f;
1219 save_ICP = inb_p(ICP); 1219 save_ICP = inb_p(ICP);
1220 outb_p(0x80, ICP); 1220 outb_p(0x80, ICP);
1221 (void) inb_p(ICP); 1221 inb_p(ICP);
1222 } 1222 }
1223 1223
1224 /* forget possible initially masked and pending IRQ */ 1224 /* forget possible initially masked and pending IRQ */
@@ -1238,10 +1238,10 @@ static void autoconfig_irq(struct uart_8250_port *up)
1238 UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2); 1238 UART_MCR_DTR | UART_MCR_RTS | UART_MCR_OUT2);
1239 } 1239 }
1240 serial_out(up, UART_IER, 0x0f); /* enable all intrs */ 1240 serial_out(up, UART_IER, 0x0f); /* enable all intrs */
1241 (void)serial_in(up, UART_LSR); 1241 serial_in(up, UART_LSR);
1242 (void)serial_in(up, UART_RX); 1242 serial_in(up, UART_RX);
1243 (void)serial_in(up, UART_IIR); 1243 serial_in(up, UART_IIR);
1244 (void)serial_in(up, UART_MSR); 1244 serial_in(up, UART_MSR);
1245 serial_out(up, UART_TX, 0xFF); 1245 serial_out(up, UART_TX, 0xFF);
1246 udelay(20); 1246 udelay(20);
1247 irq = probe_irq_off(irqs); 1247 irq = probe_irq_off(irqs);
@@ -1973,10 +1973,10 @@ static int serial8250_startup(struct uart_port *port)
1973 /* 1973 /*
1974 * Clear the interrupt registers. 1974 * Clear the interrupt registers.
1975 */ 1975 */
1976 (void) serial_in(up, UART_LSR); 1976 serial_in(up, UART_LSR);
1977 (void) serial_in(up, UART_RX); 1977 serial_in(up, UART_RX);
1978 (void) serial_in(up, UART_IIR); 1978 serial_in(up, UART_IIR);
1979 (void) serial_in(up, UART_MSR); 1979 serial_in(up, UART_MSR);
1980 1980
1981 /* 1981 /*
1982 * At this point, there's no way the LSR could still be 0xff; 1982 * At this point, there's no way the LSR could still be 0xff;
@@ -2152,7 +2152,7 @@ dont_test_tx_en:
2152 */ 2152 */
2153 icp = (up->port.iobase & 0xfe0) | 0x01f; 2153 icp = (up->port.iobase & 0xfe0) | 0x01f;
2154 outb_p(0x80, icp); 2154 outb_p(0x80, icp);
2155 (void) inb_p(icp); 2155 inb_p(icp);
2156 } 2156 }
2157 2157
2158 return 0; 2158 return 0;
@@ -2198,7 +2198,7 @@ static void serial8250_shutdown(struct uart_port *port)
2198 * Read data port to reset things, and then unlink from 2198 * Read data port to reset things, and then unlink from
2199 * the IRQ chain. 2199 * the IRQ chain.
2200 */ 2200 */
2201 (void) serial_in(up, UART_RX); 2201 serial_in(up, UART_RX);
2202 2202
2203 del_timer_sync(&up->timer); 2203 del_timer_sync(&up->timer);
2204 up->timer.function = serial8250_timeout; 2204 up->timer.function = serial8250_timeout;