diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-24 22:46:58 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2001-08-24 22:46:58 +0000 |
commit | ad5f8795e67e5af699157f83cabbe02f5648412e (patch) | |
tree | 1f9257b307fefa061b162e808a2fb446269b3ad0 /sys/arch/mvme88k | |
parent | b15d7d9843b131a85d691de6225bd447f533aecb (diff) |
Remove unused debugging code, fix uninitialized variables.
Diffstat (limited to 'sys/arch/mvme88k')
-rw-r--r-- | sys/arch/mvme88k/dev/cl.c | 32 |
1 files changed, 5 insertions, 27 deletions
diff --git a/sys/arch/mvme88k/dev/cl.c b/sys/arch/mvme88k/dev/cl.c index 8b5cdb78bdf..0fb12aab481 100644 --- a/sys/arch/mvme88k/dev/cl.c +++ b/sys/arch/mvme88k/dev/cl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cl.c,v 1.11 2001/06/27 05:44:49 nate Exp $ */ +/* $OpenBSD: cl.c,v 1.12 2001/08/24 22:46:57 miod Exp $ */ /* * Copyright (c) 1995 Dale Rahn. All rights reserved. @@ -984,7 +984,7 @@ int clcngetc(dev) dev_t dev; { - u_char val, reoir, licr, isrl, data, fifo_cnt; + u_char val, reoir, licr, isrl, data = 0, fifo_cnt; #if 0 u_char status; #endif @@ -1852,31 +1852,7 @@ cl_break (sc, channel) return; } -void -cl_dumpport0() -{ - cl_dumpport(0); - return; -} -void -cl_dumpport1() -{ - cl_dumpport(1); - return; -} -void -cl_dumpport2() -{ - cl_dumpport(2); - return; -} -void -cl_dumpport3() -{ - cl_dumpport(3); - return; -} - +#ifdef DEBUG void cl_dumpport(channel) int channel; @@ -1922,6 +1898,7 @@ cl_dumpport(channel) rcor = cl_reg->cl_rcor; tbpr = cl_reg->cl_tbpr; rpilr = cl_reg->cl_rpilr; + rir = cl_reg->cl_rir; ier = cl_reg->cl_ier; ccr = cl_reg->cl_ccr; tcor = cl_reg->cl_tcor; @@ -1997,3 +1974,4 @@ cl_dumpport(channel) printf("}\n"); return; } +#endif |