Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mac68k/dev Remove unused variables
details: https://anonhg.NetBSD.org/src/rev/27da36a24c38
branches: trunk
changeset: 790885:27da36a24c38
user: martin <martin%NetBSD.org@localhost>
date: Fri Oct 25 20:49:38 2013 +0000
description:
Remove unused variables
diffstat:
sys/arch/mac68k/dev/pm_direct.c | 13 ++++---------
1 files changed, 4 insertions(+), 9 deletions(-)
diffs (53 lines):
diff -r 9973dc6878de -r 27da36a24c38 sys/arch/mac68k/dev/pm_direct.c
--- a/sys/arch/mac68k/dev/pm_direct.c Fri Oct 25 20:46:29 2013 +0000
+++ b/sys/arch/mac68k/dev/pm_direct.c Fri Oct 25 20:49:38 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pm_direct.c,v 1.28 2007/01/24 13:08:12 hubertf Exp $ */
+/* $NetBSD: pm_direct.c,v 1.29 2013/10/25 20:49:38 martin Exp $ */
/*
* Copyright (C) 1997 Takashi Hamada
@@ -32,7 +32,7 @@
/* From: pm_direct.c 1.3 03/18/98 Takashi Hamada */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pm_direct.c,v 1.28 2007/01/24 13:08:12 hubertf Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pm_direct.c,v 1.29 2013/10/25 20:49:38 martin Exp $");
#include "opt_adb.h"
@@ -598,7 +598,6 @@
int
pm_receive_pm2(u_char *data)
{
- int i;
int rval;
rval = 0xffffcd34;
@@ -608,7 +607,7 @@
/* set VIA SR to input mode */
via_reg(VIA1, vACR) |= 0x0c;
via_reg(VIA1, vACR) &= ~0x10;
- i = PM_SR();
+ PM_SR();
PM_SET_STATE_ACKOFF();
if (pm_wait_busy((int)ADBDelay*32) != 0)
@@ -1137,7 +1136,6 @@
int i;
int ndid;
u_short bendid = 0x1;
- int rval;
PMData tmp_pmdata;
/* find another existent ADB device to poll */
@@ -1156,8 +1154,5 @@
tmp_pmdata.data[0] = (u_char)(ndid << 4) | 0xc;
tmp_pmdata.data[1] = 0x04; /* magic spell for awaking the PM */
tmp_pmdata.data[2] = 0x00;
- rval = pmgrop(&tmp_pmdata);
+ pmgrop(&tmp_pmdata);
}
-
-
-
Home |
Main Index |
Thread Index |
Old Index