]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rcu: Remove unnecessary condition check in rcu_qsctr_help()
authorAlexander Gordeev <agordeev@redhat.com>
Wed, 11 Feb 2015 14:42:37 +0000 (15:42 +0100)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 26 Feb 2015 20:11:52 +0000 (12:11 -0800)
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>
kernel/rcu/tiny.c

index cc9ceca7bde1fd5f0036ad841033071e5fec0499..d4e7fe5f3baf883d4039e752619ce51ecdd7c93c 100644 (file)
@@ -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;
        }