Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/adm5120/dev Remove unused variables
details: https://anonhg.NetBSD.org/src/rev/2e03d596b1d5
branches: trunk
changeset: 330189:2e03d596b1d5
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jun 28 10:25:32 2014 +0000
description:
Remove unused variables
diffstat:
sys/arch/mips/adm5120/dev/uart.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (45 lines):
diff -r 562367fa6a77 -r 2e03d596b1d5 sys/arch/mips/adm5120/dev/uart.c
--- a/sys/arch/mips/adm5120/dev/uart.c Sat Jun 28 10:25:16 2014 +0000
+++ b/sys/arch/mips/adm5120/dev/uart.c Sat Jun 28 10:25:32 2014 +0000
@@ -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 @@
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 @@
{
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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index