]> git.karo-electronics.de Git - linux-beck.git/commitdiff
rcutorture: Make consistent use of variables
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 19 Feb 2015 20:15:19 +0000 (12:15 -0800)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Thu, 26 Feb 2015 20:03:04 +0000 (12:03 -0800)
The "if" statement at the beginning of rcu_torture_writer() should
use the same set of variables.  In theory, this does not matter because
the corresponding variables (gp_sync and gp_sync1) have the same value
at this point in the code, but in practice such puzzles should be
removed.  This commit therefore makes the use of variables consistent.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
kernel/rcu/rcutorture.c

index 3833aa611ae7ab74dbc88b3ff63d21e7153559cf..8dbe27611ec399e42f8912d49708ff4e20bff73f 100644 (file)
@@ -875,7 +875,7 @@ rcu_torture_writer(void *arg)
                 torture_type);
 
        /* Initialize synctype[] array.  If none set, take default. */
-       if (!gp_cond1 && !gp_exp1 && !gp_normal1 && !gp_sync)
+       if (!gp_cond1 && !gp_exp1 && !gp_normal1 && !gp_sync1)
                gp_cond1 = gp_exp1 = gp_normal1 = gp_sync1 = true;
        if (gp_cond1 && cur_ops->get_state && cur_ops->cond_sync)
                synctype[nsynctypes++] = RTWS_COND_GET;