From 12f3fecf74fd245d121728ad970635bcea71cc57 Mon Sep 17 00:00:00 2001 From: matt Date: Mon, 19 Feb 2007 03:06:46 +0000 Subject: [PATCH] Return rv, not 1, in MUTEX_ACQUIRE (spotted by mhitch) --- sys/arch/vax/include/mutex.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/vax/include/mutex.h b/sys/arch/vax/include/mutex.h index 6edfbe15b3c5..6e5bc204965b 100644 --- a/sys/arch/vax/include/mutex.h +++ b/sys/arch/vax/include/mutex.h @@ -1,4 +1,4 @@ -/* $NetBSD: mutex.h,v 1.4 2007/02/19 00:31:21 ad Exp $ */ +/* $NetBSD: mutex.h,v 1.5 2007/02/19 03:06:46 matt Exp $ */ /*- * Copyright (c) 2002, 2007 The NetBSD Foundation, Inc. @@ -192,7 +192,7 @@ MUTEX_ACQUIRE(kmutex_t *mtx, uintptr_t curthread) "1:" : "=m"(mtx->mtx_owner), "=r"(rv) : "g"(curthread)); - return 1; + return rv; } static inline void