From 478a64a3bf3baf5d0a87c4e1876d268b5d6dbd0b Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 25 Dec 2009 20:51:44 +0000 Subject: Fix (currently unused) bus_space_vaddr() return value. --- sys/arch/sparc/include/bus.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'sys/arch/sparc') diff --git a/sys/arch/sparc/include/bus.h b/sys/arch/sparc/include/bus.h index f65f3fe3872..3c4f723123f 100644 --- a/sys/arch/sparc/include/bus.h +++ b/sys/arch/sparc/include/bus.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bus.h,v 1.9 2009/07/30 21:39:54 miod Exp $ */ +/* $OpenBSD: bus.h,v 1.10 2009/12/25 20:51:43 miod Exp $ */ /* * Copyright (c) 2003, Miodrag Vallat. * @@ -120,13 +120,7 @@ bus_space_barrier(bus_space_tag_t tag, bus_space_handle_t handle, static __inline__ void * bus_space_vaddr(bus_space_tag_t tag, bus_space_handle_t handle) { - u_int32_t iospace = tag->rr_iospace; - void *rc; - - tag->rr_iospace &= ~TAG_LITTLE_ENDIAN; - rc = (void *)(REG2PHYS(tag, 0) | PMAP_NC); - tag->rr_iospace = iospace; - return (rc); + return ((void *)handle); } static __inline__ int -- cgit v1.2.3