From fae1a322eff5adb3ccb8745188cd83a6d27c5267 Mon Sep 17 00:00:00 2001 From: marius Date: Thu, 20 Oct 2005 10:39:09 +0000 Subject: Remove unused variables. --- sys/boot/ofw/libofw/elf_freebsd.c | 1 - sys/boot/ofw/libofw/ofw_console.c | 1 - sys/boot/ofw/libofw/ofw_memory.c | 1 - sys/boot/ofw/libofw/openfirm.c | 4 ---- 4 files changed, 7 deletions(-) (limited to 'sys/boot/ofw') diff --git a/sys/boot/ofw/libofw/elf_freebsd.c b/sys/boot/ofw/libofw/elf_freebsd.c index 624e9fa..50fd8a6 100644 --- a/sys/boot/ofw/libofw/elf_freebsd.c +++ b/sys/boot/ofw/libofw/elf_freebsd.c @@ -47,7 +47,6 @@ __elfN(ofw_loadfile)(char *filename, u_int64_t dest, struct preloaded_file **result) { int r; - void *addr; r = __elfN(loadfile)(filename, dest, result); if (r != 0) diff --git a/sys/boot/ofw/libofw/ofw_console.c b/sys/boot/ofw/libofw/ofw_console.c index 67333ff..6cb8b03 100644 --- a/sys/boot/ofw/libofw/ofw_console.c +++ b/sys/boot/ofw/libofw/ofw_console.c @@ -112,7 +112,6 @@ int ofw_cons_poll() { unsigned char ch; - int l; if (saved_char != -1) return 1; diff --git a/sys/boot/ofw/libofw/ofw_memory.c b/sys/boot/ofw/libofw/ofw_memory.c index 90e98af..ebf01af 100644 --- a/sys/boot/ofw/libofw/ofw_memory.c +++ b/sys/boot/ofw/libofw/ofw_memory.c @@ -120,7 +120,6 @@ ofw_alloc_heap(unsigned int size) { phandle_t memoryp; struct ofw_reg available; - void *base; memoryp = OF_instance_to_package(memory); OF_getprop(memoryp, "available", &available, sizeof(available)); diff --git a/sys/boot/ofw/libofw/openfirm.c b/sys/boot/ofw/libofw/openfirm.c index 678b2cf..cfb9d1f 100644 --- a/sys/boot/ofw/libofw/openfirm.c +++ b/sys/boot/ofw/libofw/openfirm.c @@ -66,9 +66,6 @@ __FBSDID("$FreeBSD$"); int (*openfirmware)(void *); -static ihandle_t stdin; -static ihandle_t stdout; - ihandle_t mmu; ihandle_t memory; @@ -396,7 +393,6 @@ OF_canon(const char *device, char *buf, int len) phandle_t OF_finddevice(const char *device) { - int i; static struct { cell_t name; cell_t nargs; -- cgit v1.1