Module Name:    src
Committed By:   skrll
Date:           Sat Jun 28 10:25:32 UTC 2014

Modified Files:
        src/sys/arch/mips/adm5120/dev: uart.c

Log Message:
Remove unused variables


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/mips/adm5120/dev/uart.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/mips/adm5120/dev/uart.c
diff -u src/sys/arch/mips/adm5120/dev/uart.c:1.10 src/sys/arch/mips/adm5120/dev/uart.c:1.11
--- src/sys/arch/mips/adm5120/dev/uart.c:1.10	Sun Mar 16 05:20:25 2014
+++ src/sys/arch/mips/adm5120/dev/uart.c	Sat Jun 28 10:25:32 2014
@@ -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;
 }

Reply via email to