diff options
author | Alexander Gordeev <agordeev@redhat.com> | 2015-02-11 15:42:37 +0100 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-02-26 12:11:52 -0800 |
commit | 27153acbe1141ceecf098ca5d24c2ae2714c1a5f (patch) | |
tree | e9582d6d28a27b75aab17fbc0a94dd7e3fb38ea5 /kernel/rcu | |
parent | c517d838eb7d07bbe9507871fab3931deccff539 (diff) | |
download | talos-op-linux-27153acbe1141ceecf098ca5d24c2ae2714c1a5f.tar.gz talos-op-linux-27153acbe1141ceecf098ca5d24c2ae2714c1a5f.zip |
rcu: Remove unnecessary condition check in rcu_qsctr_help()
When the ->curtail and ->donetail pointers differ, ->rcucblist
always points to the beginning of the current list and thus
cannot be NULL. Therefore, the check ->rcucblist != NULL is
redundant and this commit removes it.
Cc: "Paul E. McKenney" <paulmck@linux.vnet.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@redhat.com>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/rcu')
-rw-r--r-- | kernel/rcu/tiny.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/rcu/tiny.c b/kernel/rcu/tiny.c index cc9ceca7bde1..d4e7fe5f3baf 100644 --- a/kernel/rcu/tiny.c +++ b/kernel/rcu/tiny.c @@ -103,8 +103,7 @@ EXPORT_SYMBOL(__rcu_is_watching); static int rcu_qsctr_help(struct rcu_ctrlblk *rcp) { RCU_TRACE(reset_cpu_stall_ticks(rcp)); - if (rcp->rcucblist != NULL && - rcp->donetail != rcp->curtail) { + if (rcp->donetail != rcp->curtail) { rcp->donetail = rcp->curtail; return 1; } |