diff options
author | Uros Bizjak <[email protected]> | 2022-07-13 17:19:46 +0200 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2022-07-14 10:49:25 +0200 |
commit | 89422df9548002adfffb73799cebe4909cfc8902 (patch) | |
tree | d2a4f11902e5d2ab4bb8872e6208d88d18adc873 /lib/test_fortify/write_overflow-strncpy.c | |
parent | 281dee6707a869e0f40cac81b6b65c703192aa9d (diff) |
ALSA: usb-audio: Use atomic_try_cmpxchg in ep_state_update
Use atomic_try_cmpxchg instead of atomic_cmpxchg (*ptr, old, new) == old in
ep_state_update. x86 CMPXCHG instruction returns success in ZF flag,
so this change saves a compare after cmpxchg (and related move instruction
in front of cmpxchg).
No functional change intended.
Signed-off-by: Uros Bizjak <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy.c')
0 files changed, 0 insertions, 0 deletions