Message ID | 1357405778-13903-5-git-send-email-paulmck@linux.vnet.ibm.com |
---|---|
State | Accepted |
Commit | de5e64378e6be3757a8533f55bbe1153349806dd |
Headers | show |
diff --git a/kernel/rcutorture.c b/kernel/rcutorture.c index 31dea01..0249800 100644 --- a/kernel/rcutorture.c +++ b/kernel/rcutorture.c @@ -1749,7 +1749,7 @@ static int rcu_torture_barrier_init(void) barrier_cbs_wq = kzalloc(n_barrier_cbs * sizeof(barrier_cbs_wq[0]), GFP_KERNEL); - if (barrier_cbs_tasks == NULL || barrier_cbs_wq == 0) + if (barrier_cbs_tasks == NULL || !barrier_cbs_wq) return -ENOMEM; for (i = 0; i < n_barrier_cbs; i++) { init_waitqueue_head(&barrier_cbs_wq[i]);