diff mbox

[U-Boot,v2,2/2] common.h: remove MIN, MAX, MIN3, MAX3 macros

Message ID 1411014487-23427-3-git-send-email-yamada.m@jp.panasonic.com
State Accepted
Delegated to: Tom Rini
Headers show

Commit Message

Masahiro Yamada Sept. 18, 2014, 4:28 a.m. UTC
Now MIN, MAX, MIN3, MAX are not used.
Going forward, use min, max, min3, max3.

Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
---

Changes in v2: None

 include/common.h | 6 ------
 1 file changed, 6 deletions(-)

Comments

Tom Rini Sept. 25, 2014, 2:46 p.m. UTC | #1
On Thu, Sep 18, 2014 at 01:28:07PM +0900, Masahiro Yamada wrote:

> Now MIN, MAX, MIN3, MAX are not used.
> Going forward, use min, max, min3, max3.
> 
> Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>

Applied to u-boot/master, thanks!
diff mbox

Patch

diff --git a/include/common.h b/include/common.h
index 97c04df..d5020c8 100644
--- a/include/common.h
+++ b/include/common.h
@@ -181,9 +181,6 @@  typedef void (interrupt_handler_t)(void *);
 		typeof(Y) __y = (Y);		\
 		(__x > __y) ? __x : __y; })
 
-#define MIN(x, y)  min(x, y)
-#define MAX(x, y)  max(x, y)
-
 #define min3(X, Y, Z)				\
 	({ typeof(X) __x = (X);			\
 		typeof(Y) __y = (Y);		\
@@ -198,9 +195,6 @@  typedef void (interrupt_handler_t)(void *);
 		__x > __y ? (__x > __z ? __x : __z) :	\
 		(__y > __z ? __y : __z); })
 
-#define MIN3(x, y, z)  min3(x, y, z)
-#define MAX3(x, y, z)  max3(x, y, z)
-
 /*
  * Return the absolute value of a number.
  *