From 5ec3ead6dc238ae91d07f4154342a4388a306e74 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sun, 9 May 2010 21:44:52 +0000 Subject: [PATCH] Remove extra NULL #define in amdht code. The common one is enough. Trivial Signed-off-by: Patrick Georgi Acked-by: Patrick Georgi git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5540 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/arch/i386/include/stddef.h | 2 -- src/northbridge/amd/amdht/porting.h | 4 ---- 2 files changed, 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