NPTL: Remove duplicate definition of PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.

Message ID 1427517695-8268-1-git-send-email-martin.galvan@tallertechnologies.com
State Committed
Headers

Commit Message

Martin Galvan March 28, 2015, 4:41 a.m. UTC
  The PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP macro was defined twice with the same values in pthread.h; this removes the second definition.

I don't have a copyright assignment yet, but since this is a minor change I don't think it's necessary.

ChangeLog:

2015-03-28  Martin Galvan  <martin.galvan@tallertechnologies.com>

	* sysdeps/nptl/pthread.h: Removed duplicate definition of
	PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP.

---
 sysdeps/nptl/pthread.h | 2 --
 1 file changed, 2 deletions(-)

--
2.3.4
  

Comments

Mike Frysinger March 28, 2015, 5:50 a.m. UTC | #1
On 28 Mar 2015 01:41, Martin Galvan wrote:
> The PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP macro was defined twice with the same values in pthread.h; this removes the second definition.
> 
> I don't have a copyright assignment yet, but since this is a minor change I don't think it's necessary.

agreed; pushed; thanks!
-mike
  

Patch

diff --git a/sysdeps/nptl/pthread.h b/sysdeps/nptl/pthread.h
index 70ff250..89d0882 100644
--- a/sysdeps/nptl/pthread.h
+++ b/sysdeps/nptl/pthread.h
@@ -92,8 +92,6 @@  enum
   { { 0, 0, 0, 0, PTHREAD_MUTEX_ERRORCHECK_NP, __PTHREAD_SPINS, { 0, 0 } } }
 #  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
   { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } }
-#  define PTHREAD_ADAPTIVE_MUTEX_INITIALIZER_NP \
-  { { 0, 0, 0, 0, PTHREAD_MUTEX_ADAPTIVE_NP, __PTHREAD_SPINS, { 0, 0 } } }

 # endif
 #else