Skip to contentSkip to conversation

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

PATCH New Saurav Girepunje 1 participant 1 message Oct 29, 2019 VFS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 +2 -2
index 86a38b979323..66a9fe8310c7 100644
@@ -1385,10 +1385,10 @@ static bool has_bh_in_lru(int cpu, void *dummy)
 	
 	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)
Signature · 1 line
2.20.1