From c1c5286e4197591d618ed5be55964af3c7dc2cfa Mon Sep 17 00:00:00 2001 From: mrg Date: Wed, 17 May 2006 05:16:09 +0000 Subject: [PATCH] make xscale_pmnc_write() return void, rather than returning an uninitialised value that is not used by any caller. --- sys/arch/arm/xscale/xscale_pmc.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/sys/arch/arm/xscale/xscale_pmc.c b/sys/arch/arm/xscale/xscale_pmc.c index e62779118eab..56423d5a664f 100644 --- a/sys/arch/arm/xscale/xscale_pmc.c +++ b/sys/arch/arm/xscale/xscale_pmc.c @@ -1,4 +1,4 @@ -/* $NetBSD: xscale_pmc.c,v 1.9 2005/12/24 20:06:52 perry Exp $ */ +/* $NetBSD: xscale_pmc.c,v 1.10 2006/05/17 05:16:09 mrg Exp $ */ /* * Copyright (c) 2002 Wasabi Systems, Inc. @@ -36,7 +36,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: xscale_pmc.c,v 1.9 2005/12/24 20:06:52 perry Exp $"); +__KERNEL_RCSID(0, "$NetBSD: xscale_pmc.c,v 1.10 2006/05/17 05:16:09 mrg Exp $"); #include #include @@ -86,15 +86,12 @@ xscale_pmnc_read(void) return pmnc; } -static inline uint32_t +static inline void xscale_pmnc_write(uint32_t val) { - uint32_t pmnc; __asm volatile("mcr p14, 0, %0, c0, c0, 0" : : "r" (val)); - - return pmnc; } int