Module Name: src
Committed By: christos
Date: Wed Nov 6 02:41:12 UTC 2013
Modified Files:
src/sys/arch/shark/ofw: ofw.c
Log Message:
remove unused variables
To generate a diff of this commit:
cvs rdiff -u -r1.61 -r1.62 src/sys/arch/shark/ofw/ofw.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/shark/ofw/ofw.c
diff -u src/sys/arch/shark/ofw/ofw.c:1.61 src/sys/arch/shark/ofw/ofw.c:1.62
--- src/sys/arch/shark/ofw/ofw.c:1.61 Sun Aug 18 03:01:45 2013
+++ src/sys/arch/shark/ofw/ofw.c Tue Nov 5 21:41:12 2013
@@ -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 @@ ofw_callbackhandler(void *v)
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 @@ ofw_callbackhandler(void *v)
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 @@ ofw_callbackhandler(void *v)
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 @@ ofw_callbackhandler(void *v)
}
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;