diff mbox series

maple_tree: Fix bitwise for logical operator in mas_validate_limits()

Message ID 20220719185142.3360559-1-Liam.Howlett@oracle.com (mailing list archive)
State New
Headers show
Series maple_tree: Fix bitwise for logical operator in mas_validate_limits() | expand

Commit Message

Liam R. Howlett July 19, 2022, 6:51 p.m. UTC
Use the correct operator.

Fixes: fb7297e8a66b (Maple Tree: add new data structure)
Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
---
 lib/maple_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/lib/maple_tree.c b/lib/maple_tree.c
index 0c0bda979693..d5b310e73068 100644
--- a/lib/maple_tree.c
+++ b/lib/maple_tree.c
@@ -6966,7 +6966,7 @@  static void mas_validate_limits(struct ma_state *mas)
 
 		piv = mas_safe_pivot(mas, pivots, i, type);
 
-		if (!piv & (i != 0))
+		if (!piv && (i != 0))
 			break;
 
 		if (!mte_is_leaf(mas->node)) {