Ignore:
Timestamp:
Jan 2, 2021, 1:29:57 AM (5 years ago)
Author:
Paul Smedley
Message:

More code cleanups to eliminate warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/include/linux/refcount.h

    r615 r622  
    3737}
    3838
    39 static inline __must_check bool refcount_add_not_zero(unsigned int i, refcount_t *r)
    40 {
    41         return atomic_add_unless(&r->refs, i, 0);
    42 }
    43 
    4439static inline void refcount_add(unsigned int i, refcount_t *r)
    4540{
    4641        atomic_add(i, &r->refs);
    47 }
    48 
    49 static inline __must_check bool refcount_inc_not_zero(refcount_t *r)
    50 {
    51         return atomic_add_unless(&r->refs, 1, 0);
    5242}
    5343
Note: See TracChangeset for help on using the changeset viewer.