Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84989
b: refs/heads/master
c: 3c1d930
h: refs/heads/master
i:
  84987: 0200a6e
v: v3
  • Loading branch information
Jesper Nilsson committed Feb 8, 2008
1 parent cde964a commit 9efc666
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: b43890af886b14d3052d8b7f9e0b2f8d261dcd7d
refs/heads/master: 3c1d9303a9676fd4f9062f2347f1a6241eb6314b
4 changes: 2 additions & 2 deletions trunk/include/asm-cris/atomic.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static inline int atomic_inc_return(volatile atomic_t *v)
unsigned long flags;
int retval;
cris_atomic_save(v, flags);
retval = (v->counter)++;
retval = ++(v->counter);
cris_atomic_restore(v, flags);
return retval;
}
Expand All @@ -101,7 +101,7 @@ static inline int atomic_dec_return(volatile atomic_t *v)
unsigned long flags;
int retval;
cris_atomic_save(v, flags);
retval = (v->counter)--;
retval = --(v->counter);
cris_atomic_restore(v, flags);
return retval;
}
Expand Down

0 comments on commit 9efc666

Please sign in to comment.