summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue_types.h
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2026-05-12 22:03:53 +0200
committerSven Eckelmann <sven@narfation.org>2026-05-29 21:19:21 +0200
commit9550dd11e360ec0c460b13096ceda283601fa5cb (patch)
tree4b75e07d1898c65e683359498c5545397e260850 /include/linux/timerqueue_types.h
parentb8fbbfe81d3e9678290923f374d700aa03fa8d4e (diff)
batman-adv: use atomic_xchg() for gw.reselect check
batadv_gw_election() only needs to test whether gw.reselect was set and clear it afterwards. Replace the batadv_atomic_dec_not_zero() [atomic_add_unless(..., -1, 0)] call with atomic_xchg(..., 0) to simplify the logic and make the intent more explicit. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'include/linux/timerqueue_types.h')
0 files changed, 0 insertions, 0 deletions