Skip to contentSkip to conversation

fs/buffer.c: fix use true/false for bool type

PATCH In review [email protected] 1 participant 1 message Dec 1, 2019

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 3/158 fs/buffer.c: fix use true/false for bool type

From: Saurav Girepunje <[email protected]>
Subject: fs/buffer.c: fix use true/false for bool type

Use true/false for bool return type of has_bh_in_lru().

---

 fs/buffer.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
fs/buffer.c renamed from fs/buffer.c~fs-bufferc-fix-use-true-false-for-bool-type +2 -2
@@ -1423,10 +1423,10 @@ static bool has_bh_in_lru(int cpu, void
 	
 	for (i = 0; i < BH_LRU_SIZE; i++) {
 		if (b->bhs[i])
-			return 1;
+			return true;
 	}
 
-	return 0;
+	return false;
 }
 
 void invalidate_bh_lrus(void)

_