lib/lockref: __lockref_is_dead can be boolean
PATCH 91/114 lib/lockref: __lockref_is_dead can be boolean
From: Yaowei Bai <[email protected]>
Subject: lib/lockref: __lockref_is_dead can be boolean
Make __lockref_is_dead return bool due to this function only using either true or false as its return value.
No functional change.
Signed-off-by Yaowei Bai <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
include/linux/lockref.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/lockref.h renamed from include/linux/lockref.h~lib-lockref-__lockref_is_dead-can-be-boolean +1 -1
@@ -44,7 +44,7 @@ extern void lockref_mark_dead(struct locextern int lockref_get_not_dead (struct lockref *);/* Must be called under spinlock for reliable results */ -static inline int __lockref_is_dead (const struct lockref *l) +static inline bool __lockref_is_dead (const struct lockref *l) {return ((int )l->count <0 ); }
_