Remove unused variables

This commit is contained in:
skrll 2014-06-28 10:25:32 +00:00
parent 70a57c80dc
commit cc7dc561ab
1 changed files with 4 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: uart.c,v 1.10 2014/03/16 05:20:25 dholland Exp $ */
/* $NetBSD: uart.c,v 1.11 2014/06/28 10:25:32 skrll Exp $ */
/*-
* Copyright (c) 2007 Ruslan Ermilov and Vsevolod Lobko.
@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: uart.c,v 1.10 2014/03/16 05:20:25 dholland Exp $");
__KERNEL_RCSID(0, "$NetBSD: uart.c,v 1.11 2014/06/28 10:25:32 skrll Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@ -171,8 +171,6 @@ uart_cnattach(void)
void
uart_cnputc(dev_t dev, int c)
{
char chr;
chr = c;
while ((*((volatile unsigned long *)0xb2600018)) & 0x20)
continue;
(*((volatile unsigned long *)0xb2600000)) = c;
@ -335,7 +333,7 @@ uart_intr(void *v)
{
struct uart_softc *sc = v;
struct tty *tp = sc->sc_tty;
int c, l_r;
int c;
if (REG_READ(UART_RSR_REG) & UART_RSR_BE) {
REG_WRITE(UART_ECR_REG, UART_ECR_RSR);
@ -345,7 +343,7 @@ uart_intr(void *v)
while ((REG_READ(UART_FR_REG) & UART_FR_RX_FIFO_EMPTY) == 0) {
c = REG_READ(UART_DR_REG) & 0xff;
if (tp->t_state & TS_ISOPEN)
l_r = (*tp->t_linesw->l_rint)(c, tp);
(*tp->t_linesw->l_rint)(c, tp);
}
return 0;
}