summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2010-05-09 21:44:52 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2010-05-09 21:44:52 +0000
commit5ec3ead6dc238ae91d07f4154342a4388a306e74 (patch)
treea547a71dcfd3e25db897420aae4eab380ac9abad
parent3d5bb236aa6147ce24d9618f2d482e76eefc58c6 (diff)
Remove extra NULL #define in amdht code. The
common one is enough. Trivial Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Patrick Georgi <patrick.georgi@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5540 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rw-r--r--src/arch/i386/include/stddef.h2
-rw-r--r--src/northbridge/amd/amdht/porting.h4
2 files changed, 0 insertions, 6 deletions
diff --git a/src/arch/i386/include/stddef.h b/src/arch/i386/include/stddef.h
index 6583cc62ef..e4fc019c87 100644
--- a/src/arch/i386/include/stddef.h
+++ b/src/arch/i386/include/stddef.h
@@ -8,9 +8,7 @@ typedef long ssize_t;
typedef int wchar_t;
typedef unsigned int wint_t;
-#ifndef NULL
#define NULL ((void *)0)
-#endif
#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
diff --git a/src/northbridge/amd/amdht/porting.h b/src/northbridge/amd/amdht/porting.h
index 0792480da4..b468ded698 100644
--- a/src/northbridge/amd/amdht/porting.h
+++ b/src/northbridge/amd/amdht/porting.h
@@ -77,10 +77,6 @@ void CALLCONV AmdPCIWrite(SBDFO loc, uint32 *Value);
void CALLCONV AmdCPUIDRead(uint32 Address, uint32 Regs[4]);
void CALLCONV ErrorStop(uint32 Value);
-#ifndef NULL
-#define NULL ((void *) 0)
-#endif
-
#define BYTESIZE 1
#define WORDSIZE 2
#define DWORDSIZE 4