projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
documentation: Fix variable-name typo in memory-barriers.txt
[firefly-linux-kernel-4.4.55.git]
/
Documentation
/
memory-barriers.txt
diff --git
a/Documentation/memory-barriers.txt
b/Documentation/memory-barriers.txt
index 13feb697271f0a270334dd3807255ed14af7d7ed..3d06f98b2ff2c3eb51f646e70c2e1b6b8ead738b 100644
(file)
--- 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