From: Harry Jeffery <me@harry.pm>
To: linux-kernel@vger.kernel.org
Cc: Harry Jeffery <me@harry.pm>
Subject: [PATCH] btree: Remove custom MAX macro
Date: Thu, 26 Sep 2019 22:34:05 +0100 [thread overview]
Message-ID: <20190926213405.91757-1-me@harry.pm> (raw)
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@harry.pm>
---
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
next reply other threads:[~2019-09-26 21:36 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-26 21:34 Harry Jeffery [this message]
2019-09-26 22:15 ` kbuild test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190926213405.91757-1-me@harry.pm \
--to=me@harry.pm \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®