diff options
author | Richard Braun <rbraun@sceen.net> | 2017-05-10 00:03:03 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-05-10 00:03:03 +0200 |
commit | 697959897a860d0de156d277d423941271d8c978 (patch) | |
tree | 23adfd9d8015ece8076f1c24f638af7a719abef0 | |
parent | 499f3502882fa63595bc9016fd9cd4382d880e30 (diff) |
x86/atomic: fix architecture-specific atomic_store macro
-rw-r--r-- | arch/x86/machine/atomic.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/machine/atomic.h b/arch/x86/machine/atomic.h index b5a0b5c1..db49ad14 100644 --- a/arch/x86/machine/atomic.h +++ b/arch/x86/machine/atomic.h @@ -58,7 +58,7 @@ MACRO_END #define atomic_store(ptr, val, mo) \ MACRO_BEGIN \ - if (sizeof(*(ptr) != 8)) { \ + if (sizeof(*(ptr)) != 8) { \ __atomic_store_n(ptr, val, mo); \ } else { \ typeof(val) ___oval, ___nval; \ |