diff options
author | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-05-18 21:27:42 -0400 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2015-07-15 17:43:11 -0400 |
commit | 57aecae950c55ef50934640794160cd118e73256 (patch) | |
tree | 22d4ab240a4428939983bb885bc48717c6600687 /Documentation/memory-barriers.txt | |
parent | 297f739938908a4262603314576e32ee7375296c (diff) |
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.txt | 2 |
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 | |||
746 | evaluation. Consider this example: | 746 | evaluation. Consider this example: |
747 | 747 | ||
748 | q = READ_ONCE_CTRL(a); | 748 | q = READ_ONCE_CTRL(a); |
749 | if (a || 1 > 0) | 749 | if (q || 1 > 0) |
750 | ACCESS_ONCE(b) = 1; | 750 | ACCESS_ONCE(b) = 1; |
751 | 751 | ||
752 | Because the first condition cannot fault and the second condition is | 752 | Because the first condition cannot fault and the second condition is |