Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev Remove unused variable
details: https://anonhg.NetBSD.org/src/rev/0297c4e0b25a
branches: trunk
changeset: 790073:0297c4e0b25a
user: martin <martin%NetBSD.org@localhost>
date: Sun Sep 15 16:12:00 2013 +0000
description:
Remove unused variable
diffstat:
sys/dev/ic/z8530sc.c | 8 ++++----
sys/dev/wscons/wsdisplay_vcons.c | 6 ++----
2 files changed, 6 insertions(+), 8 deletions(-)
diffs (70 lines):
diff -r c029d6facc89 -r 0297c4e0b25a sys/dev/ic/z8530sc.c
--- a/sys/dev/ic/z8530sc.c Sun Sep 15 16:10:45 2013 +0000
+++ b/sys/dev/ic/z8530sc.c Sun Sep 15 16:12:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: z8530sc.c,v 1.30 2009/05/22 03:51:30 mrg Exp $ */
+/* $NetBSD: z8530sc.c,v 1.31 2013/09/15 16:13:33 martin Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -91,7 +91,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: z8530sc.c,v 1.30 2009/05/22 03:51:30 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: z8530sc.c,v 1.31 2013/09/15 16:13:33 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -129,7 +129,7 @@
void
zs_iflush(struct zs_chanstate *cs)
{
- uint8_t c, rr0, rr1;
+ uint8_t rr0, rr1;
int i;
/*
@@ -147,7 +147,7 @@
* destroys the status of this char.
*/
rr1 = zs_read_reg(cs, 1);
- c = zs_read_data(cs);
+ (void)zs_read_data(cs);
if (rr1 & (ZSRR1_FE | ZSRR1_DO | ZSRR1_PE)) {
/* Clear the receive error. */
diff -r c029d6facc89 -r 0297c4e0b25a sys/dev/wscons/wsdisplay_vcons.c
--- a/sys/dev/wscons/wsdisplay_vcons.c Sun Sep 15 16:10:45 2013 +0000
+++ b/sys/dev/wscons/wsdisplay_vcons.c Sun Sep 15 16:12:00 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: wsdisplay_vcons.c,v 1.28 2013/05/28 11:04:04 macallan Exp $ */
+/* $NetBSD: wsdisplay_vcons.c,v 1.29 2013/09/15 16:12:00 martin Exp $ */
/*-
* Copyright (c) 2005, 2006 Michael Lorenz
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.28 2013/05/28 11:04:04 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wsdisplay_vcons.c,v 1.29 2013/09/15 16:12:00 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -907,7 +907,6 @@
struct rasops_info *ri = cookie;
struct vcons_screen *scr = ri->ri_hw;
struct vcons_data *vd = scr->scr_vd;
- int dist;
if (SCREEN_IS_VISIBLE(scr) && SCREEN_CAN_DRAW(scr)) {
int pos, l, c, offset, ppos;
@@ -917,7 +916,6 @@
#else
offset = 0;
#endif
- dist = (dstrow - srcrow) * ri->ri_cols;
ppos = ri->ri_cols * dstrow;
pos = ppos + offset;
for (l = dstrow; l < (dstrow + nrows); l++) {
Home |
Main Index |
Thread Index |
Old Index