srcu: Remove extraneous parentheses from srcu_read_lock() etc.
authorPaul E. McKenney <paulmck@kernel.org>
Sat, 18 Mar 2023 20:51:10 +0000 (13:51 -0700)
committerPaul E. McKenney <paulmck@kernel.org>
Wed, 10 May 2023 00:25:30 +0000 (17:25 -0700)
This commit removes extraneous parentheses from srcu_read_lock(),
srcu_read_lock_nmisafe(), srcu_read_unlock(), and
srcu_read_unlock_nmisafe().  Looks like someone was once a macro.

Cc: Christoph Hellwig <hch@lst.de>
Tested-by: Sachin Sant <sachinp@linux.ibm.com>
Tested-by: "Zhang, Qiang1" <qiang1.zhang@intel.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
include/linux/srcu.h

index 41c4b26fb1c1949f08b59426192813cfe10a3c9f..eb92a50a45995105d806f4104fb93b7580c7854e 100644 (file)
@@ -212,7 +212,7 @@ static inline int srcu_read_lock(struct srcu_struct *ssp) __acquires(ssp)
 
        srcu_check_nmi_safety(ssp, false);
        retval = __srcu_read_lock(ssp);
-       srcu_lock_acquire(&(ssp)->dep_map);
+       srcu_lock_acquire(&ssp->dep_map);
        return retval;
 }
 
@@ -229,7 +229,7 @@ static inline int srcu_read_lock_nmisafe(struct srcu_struct *ssp) __acquires(ssp
 
        srcu_check_nmi_safety(ssp, true);
        retval = __srcu_read_lock_nmisafe(ssp);
-       rcu_lock_acquire(&(ssp)->dep_map);
+       rcu_lock_acquire(&ssp->dep_map);
        return retval;
 }
 
@@ -284,7 +284,7 @@ static inline void srcu_read_unlock(struct srcu_struct *ssp, int idx)
 {
        WARN_ON_ONCE(idx & ~0x1);
        srcu_check_nmi_safety(ssp, false);
-       srcu_lock_release(&(ssp)->dep_map);
+       srcu_lock_release(&ssp->dep_map);
        __srcu_read_unlock(ssp, idx);
 }
 
@@ -300,7 +300,7 @@ static inline void srcu_read_unlock_nmisafe(struct srcu_struct *ssp, int idx)
 {
        WARN_ON_ONCE(idx & ~0x1);
        srcu_check_nmi_safety(ssp, true);
-       rcu_lock_release(&(ssp)->dep_map);
+       rcu_lock_release(&ssp->dep_map);
        __srcu_read_unlock_nmisafe(ssp, idx);
 }