[PATCH] btree: Remove custom MAX macro

From: Harry Jeffery
Date: Thu Sep 26 2019 - 17:37:06 EST


The btree implementation defines its own MAX macro, whilst also
including kernel.h, which already defines a max macro. This removes the
custom implementation in favour of the standard one provided in kernel.h

Signed-off-by: Harry Jeffery <me@xxxxxxxx>
---
lib/btree.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/btree.c b/lib/btree.c
index b4cf08a5c267..4b5968b6167b 100644
--- a/lib/btree.c
+++ b/lib/btree.c
@@ -43,8 +43,7 @@
#include <linux/slab.h>
#include <linux/module.h>

-#define MAX(a, b) ((a) > (b) ? (a) : (b))
-#define NODESIZE MAX(L1_CACHE_BYTES, 128)
+#define NODESIZE max(L1_CACHE_BYTES, 128)

struct btree_geo {
int keylen;
--
2.23.0