Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/shark/ofw remove unused variables
details: https://anonhg.NetBSD.org/src/rev/a856e7a0f1b8
branches: trunk
changeset: 791128:a856e7a0f1b8
user: christos <christos%NetBSD.org@localhost>
date: Wed Nov 06 02:41:12 2013 +0000
description:
remove unused variables
diffstat:
sys/arch/shark/ofw/ofw.c | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
diffs (54 lines):
diff -r 68b88363f72d -r a856e7a0f1b8 sys/arch/shark/ofw/ofw.c
--- a/sys/arch/shark/ofw/ofw.c Wed Nov 06 02:37:58 2013 +0000
+++ b/sys/arch/shark/ofw/ofw.c Wed Nov 06 02:41:12 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofw.c,v 1.61 2013/08/18 07:01:45 matt Exp $ */
+/* $NetBSD: ofw.c,v 1.62 2013/11/06 02:41:12 christos Exp $ */
/*
* Copyright 1997
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.61 2013/08/18 07:01:45 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofw.c,v 1.62 2013/11/06 02:41:12 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1202,7 +1202,6 @@
args->nreturns = 1;
} else if (strcmp(name, "claim-virt") == 0) {
vaddr_t va;
- vsize_t size;
vaddr_t align;
/* XXX - notyet */
@@ -1220,7 +1219,6 @@
args_n_results[nargs] = 0; /* properly formatted request */
/* Allocate size bytes with specified alignment. */
- size = (vsize_t)args_n_results[0];
align = (vaddr_t)args_n_results[1];
if (align % PAGE_SIZE != 0) {
args_n_results[nargs + 1] = -1;
@@ -1239,8 +1237,6 @@
args->nreturns = 3;
}
} else if (strcmp(name, "release-virt") == 0) {
- vaddr_t va;
- vsize_t size;
/* XXX - notyet */
printf("unimplemented ofw callback - %s\n", name);
@@ -1256,10 +1252,6 @@
}
args_n_results[nargs] = 0; /* properly formatted request */
- /* Release bytes. */
- va = (vaddr_t)args_n_results[0];
- size = (vsize_t)args_n_results[1];
-
args->nreturns = 1;
} else {
args_n_results[nargs] = -1;
Home |
Main Index |
Thread Index |
Old Index