Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Remove redundant declaration of MUTEX_CLEAR_WAITERS...



details:   https://anonhg.NetBSD.org/src/rev/ed4b83fe50b9
branches:  trunk
changeset: 790156:ed4b83fe50b9
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun Sep 22 14:59:07 2013 +0000

description:
Remove redundant declaration of MUTEX_CLEAR_WAITERS without checking if
any of the !__HAVE_SIMPLE_MUTEX architectures need it based on the
assumption that HPPA is the only member of that category.

diffstat:

 sys/kern/kern_mutex.c |  10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)

diffs (31 lines):

diff -r 8623a61d6f35 -r ed4b83fe50b9 sys/kern/kern_mutex.c
--- a/sys/kern/kern_mutex.c     Sun Sep 22 14:55:07 2013 +0000
+++ b/sys/kern/kern_mutex.c     Sun Sep 22 14:59:07 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_mutex.c,v 1.56 2013/09/22 14:55:07 skrll Exp $    */
+/*     $NetBSD: kern_mutex.c,v 1.57 2013/09/22 14:59:07 joerg Exp $    */
 
 /*-
  * Copyright (c) 2002, 2006, 2007, 2008 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 #define        __MUTEX_PRIVATE
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.56 2013/09/22 14:55:07 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_mutex.c,v 1.57 2013/09/22 14:59:07 joerg Exp $");
 
 #include <sys/param.h>
 #include <sys/atomic.h>
@@ -218,12 +218,6 @@
        MUTEX_INHERITDEBUG(new, mtx->mtx_owner);
        mtx->mtx_owner = new;
 }
-
-static inline void
-MUTEX_CLEAR_WAITERS(kmutex_t *mtx)
-{
-       /* nothing */
-}
 #endif /* __HAVE_SIMPLE_MUTEXES */
 
 /*



Home | Main Index | Thread Index | Old Index