Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 191468
b: refs/heads/master
c: 9757789
h: refs/heads/master
v: v3
  • Loading branch information
Luca Barbieri authored and H. Peter Anvin committed Mar 1, 2010
1 parent 4ed735a commit 42e210c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e6104fe085026e6ef82cc5cc303d6c8ceb7e411
refs/heads/master: 97577896f6b9c056fa0a5e9f6a608110cb3dcd33
4 changes: 2 additions & 2 deletions trunk/lib/atomic64.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ int atomic64_add_unless(atomic64_t *v, long long a, long long u)
{
unsigned long flags;
spinlock_t *lock = lock_addr(v);
int ret = 1;
int ret = 0;

spin_lock_irqsave(lock, flags);
if (v->counter != u) {
v->counter += a;
ret = 0;
ret = 1;
}
spin_unlock_irqrestore(lock, flags);
return ret;
Expand Down

0 comments on commit 42e210c

Please sign in to comment.