diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/lib/atomic64_32.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/lib/atomic64_32.c b/arch/x86/lib/atomic64_32.c index a804f96e90e2..1d98c9eb6eac 100644 --- a/arch/x86/lib/atomic64_32.c +++ b/arch/x86/lib/atomic64_32.c | |||
@@ -175,9 +175,9 @@ EXPORT_SYMBOL(atomic64_sub); | |||
175 | */ | 175 | */ |
176 | int atomic64_sub_and_test(u64 delta, atomic64_t *ptr) | 176 | int atomic64_sub_and_test(u64 delta, atomic64_t *ptr) |
177 | { | 177 | { |
178 | u64 old_val = atomic64_sub_return(delta, ptr); | 178 | u64 new_val = atomic64_sub_return(delta, ptr); |
179 | 179 | ||
180 | return old_val == 0; | 180 | return new_val == 0; |
181 | } | 181 | } |
182 | EXPORT_SYMBOL(atomic64_sub_and_test); | 182 | EXPORT_SYMBOL(atomic64_sub_and_test); |
183 | 183 | ||
@@ -244,8 +244,8 @@ EXPORT_SYMBOL(atomic64_inc_and_test); | |||
244 | */ | 244 | */ |
245 | int atomic64_add_negative(u64 delta, atomic64_t *ptr) | 245 | int atomic64_add_negative(u64 delta, atomic64_t *ptr) |
246 | { | 246 | { |
247 | long long old_val = atomic64_add_return(delta, ptr); | 247 | s64 new_val = atomic64_add_return(delta, ptr); |
248 | 248 | ||
249 | return old_val < 0; | 249 | return new_val < 0; |
250 | } | 250 | } |
251 | EXPORT_SYMBOL(atomic64_add_negative); | 251 | EXPORT_SYMBOL(atomic64_add_negative); |