documentation: Fix variable-name typo in memory-barriers.txt
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Tue, 19 May 2015 01:27:42 +0000 (18:27 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 15 Jul 2015 21:43:11 +0000 (14:43 -0700)
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Documentation/memory-barriers.txt

index 13feb697271f0a270334dd3807255ed14af7d7ed..3d06f98b2ff2c3eb51f646e70c2e1b6b8ead738b 100644 (file)
@@ -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