diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-cris/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/asm-cris/atomic.h b/include/asm-cris/atomic.h index 2949a945876..5fc87768774 100644 --- a/include/asm-cris/atomic.h +++ b/include/asm-cris/atomic.h @@ -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; } @@ -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; } |