aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/atomic/fallbacks/dec_and_test
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/atomic/fallbacks/dec_and_test')
-rwxr-xr-xscripts/atomic/fallbacks/dec_and_test14
1 files changed, 1 insertions, 13 deletions
diff --git a/scripts/atomic/fallbacks/dec_and_test b/scripts/atomic/fallbacks/dec_and_test
index e8a5e492eb5f..3a0278e0ddd7 100755
--- a/scripts/atomic/fallbacks/dec_and_test
+++ b/scripts/atomic/fallbacks/dec_and_test
@@ -1,15 +1,3 @@
cat <<EOF
-/**
- * ${arch}${atomic}_dec_and_test - decrement and test
- * @v: pointer of type ${atomic}_t
- *
- * Atomically decrements @v by 1 and
- * returns true if the result is 0, or false for all other
- * cases.
- */
-static __always_inline bool
-${arch}${atomic}_dec_and_test(${atomic}_t *v)
-{
- return ${arch}${atomic}_dec_return(v) == 0;
-}
+ return raw_${atomic}_dec_return(v) == 0;
EOF