summaryrefslogtreecommitdiff
path: root/src/vendorcode/cavium
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2019-11-30 17:54:02 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-12-27 08:57:44 +0000
commitd6de92ef1ed8bcfc3660998b5ea0aaafc1d18678 (patch)
tree67716c9824ba2f1f0051ab5a90048eed86b4341a /src/vendorcode/cavium
parent2ad6f8138a2f36fbf71ac24d9f2450c03993002f (diff)
src/include: Remove min/max() from <stdlib.h>
Change-Id: I9ded44422a267e244343502dd5d6ab355e5a788d Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/c/coreboot/+/37378 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/vendorcode/cavium')
-rw-r--r--src/vendorcode/cavium/bdk/libdram/dram-util.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/vendorcode/cavium/bdk/libdram/dram-util.h b/src/vendorcode/cavium/bdk/libdram/dram-util.h
index c9a96ba5ae..f8ab6c1552 100644
--- a/src/vendorcode/cavium/bdk/libdram/dram-util.h
+++ b/src/vendorcode/cavium/bdk/libdram/dram-util.h
@@ -42,8 +42,6 @@
* are not meant for users's of the libdram API.
*/
-#if 0
-/* FIXME(dhendrix): min/max are defined in stdlib.h */
/**
* Standard min(a,b) macro
*/
@@ -58,7 +56,6 @@
#define max(X, Y) \
({ typeof (X) __x = (X); typeof(Y) __y = (Y); \
(__x > __y) ? __x : __y; })
-#endif
/**
* Absolute value of an integer