diff options
Diffstat (limited to 'include/linux/percpu-refcount.h')
-rw-r--r-- | include/linux/percpu-refcount.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h index 12c9b485beb7..abd7c01c84db 100644 --- a/include/linux/percpu-refcount.h +++ b/include/linux/percpu-refcount.h | |||
@@ -206,7 +206,7 @@ static inline void percpu_ref_get(struct percpu_ref *ref) | |||
206 | static inline bool percpu_ref_tryget(struct percpu_ref *ref) | 206 | static inline bool percpu_ref_tryget(struct percpu_ref *ref) |
207 | { | 207 | { |
208 | unsigned long __percpu *percpu_count; | 208 | unsigned long __percpu *percpu_count; |
209 | int ret; | 209 | bool ret; |
210 | 210 | ||
211 | rcu_read_lock_sched(); | 211 | rcu_read_lock_sched(); |
212 | 212 | ||
@@ -240,7 +240,7 @@ static inline bool percpu_ref_tryget(struct percpu_ref *ref) | |||
240 | static inline bool percpu_ref_tryget_live(struct percpu_ref *ref) | 240 | static inline bool percpu_ref_tryget_live(struct percpu_ref *ref) |
241 | { | 241 | { |
242 | unsigned long __percpu *percpu_count; | 242 | unsigned long __percpu *percpu_count; |
243 | int ret = false; | 243 | bool ret = false; |
244 | 244 | ||
245 | rcu_read_lock_sched(); | 245 | rcu_read_lock_sched(); |
246 | 246 | ||