summaryrefslogtreecommitdiffstats
path: root/Documentation/memory-barriers.txt
diff options
context:
space:
mode:
authorPaul E. McKenney2015-05-19 03:27:42 +0200
committerPaul E. McKenney2015-07-15 23:43:11 +0200
commit57aecae950c55ef50934640794160cd118e73256 (patch)
tree22d4ab240a4428939983bb885bc48717c6600687 /Documentation/memory-barriers.txt
parentdocumentation: Fix spelling of "operators" (diff)
downloadkernel-qcow2-linux-57aecae950c55ef50934640794160cd118e73256.tar.gz
kernel-qcow2-linux-57aecae950c55ef50934640794160cd118e73256.tar.xz
kernel-qcow2-linux-57aecae950c55ef50934640794160cd118e73256.zip
documentation: Fix variable-name typo in memory-barriers.txt
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Diffstat (limited to 'Documentation/memory-barriers.txt')
-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