summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-05-18 18:27:42 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2015-07-15 14:43:11 -0700
commit57aecae950c55ef50934640794160cd118e73256 (patch)
tree22d4ab240a4428939983bb885bc48717c6600687
parent297f739938908a4262603314576e32ee7375296c (diff)
downloadlinux-stable-57aecae950c55ef50934640794160cd118e73256.tar.gz
linux-stable-57aecae950c55ef50934640794160cd118e73256.tar.bz2
linux-stable-57aecae950c55ef50934640794160cd118e73256.zip
documentation: Fix variable-name typo in memory-barriers.txt
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
-rw-r--r--Documentation/memory-barriers.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/memory-barriers.txt b/Documentation/memory-barriers.txt
index 13feb697271f..3d06f98b2ff2 100644
--- a/Documentation/memory-barriers.txt
+++ b/Documentation/memory-barriers.txt
@@ -746,7 +746,7 @@ You must also be careful not to rely too much on boolean short-circuit
evaluation. Consider this example:
q = READ_ONCE_CTRL(a);
- if (a || 1 > 0)
+ if (q || 1 > 0)
ACCESS_ONCE(b) = 1;
Because the first condition cannot fault and the second condition is