documentation: Fix variable-name typo in memory-barriers.txt
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
This commit is contained in:
parent
297f739938
commit
57aecae950
|
@ -746,7 +746,7 @@ You must also be careful not to rely too much on boolean short-circuit
|
||||||
evaluation. Consider this example:
|
evaluation. Consider this example:
|
||||||
|
|
||||||
q = READ_ONCE_CTRL(a);
|
q = READ_ONCE_CTRL(a);
|
||||||
if (a || 1 > 0)
|
if (q || 1 > 0)
|
||||||
ACCESS_ONCE(b) = 1;
|
ACCESS_ONCE(b) = 1;
|
||||||
|
|
||||||
Because the first condition cannot fault and the second condition is
|
Because the first condition cannot fault and the second condition is
|
||||||
|
|
Loading…
Reference in New Issue