Skip to content

Commit abbb232

Browse files
committed
Merge pull request open-mpi#551 from hjelmn/v2.x_opal_mutex_mod
opal/mutex: remove unnecessary ()s from OPAL_SCOPED_LOCK macro
2 parents dc4b772 + 9b7a2a9 commit abbb232

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

opal/threads/mutex.h

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
12
/*
23
* Copyright (c) 2004-2005 The Trustees of Indiana University and Indiana
34
* University Research and Technology
@@ -10,7 +11,7 @@
1011
* Copyright (c) 2004-2005 The Regents of the University of California.
1112
* All rights reserved.
1213
* Copyright (c) 2007 Cisco Systems, Inc. All rights reserved.
13-
* Copyright (c) 2007-2013 Los Alamos National Security, LLC. All rights
14+
* Copyright (c) 2007-2015 Los Alamos National Security, LLC. All rights
1415
* reserved.
1516
* Copyright (c) 2007 Voltaire. All rights reserved.
1617
* Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.
@@ -253,10 +254,10 @@ static inline bool opal_set_using_threads(bool have)
253254
do { \
254255
if(opal_using_threads()) { \
255256
opal_mutex_lock(mutex); \
256-
(action); \
257+
action; \
257258
opal_mutex_unlock(mutex); \
258259
} else { \
259-
(action); \
260+
action; \
260261
} \
261262
} while (0)
262263

0 commit comments

Comments
 (0)