From: Nishanth Menon Date: Mon, 12 Jul 2010 22:56:00 +0000 (-0500) Subject: staging: tidspbridge: no need for custom NULL X-Git-Tag: v2.6.36-rc1~520^2~1^2~196 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=86dd51e4c4d620dfe1aca584a1332b55f3a49c05;p=karo-tx-linux.git staging: tidspbridge: no need for custom NULL kernel has it's own NULL define, we dont need to introduce our own custom NULL type! Signed-off-by: Nishanth Menon Reviewed-by: Felipe Contreras Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/tidspbridge/dynload/header.h b/drivers/staging/tidspbridge/dynload/header.h index 04623f17574a..5b50a15a343e 100644 --- a/drivers/staging/tidspbridge/dynload/header.h +++ b/drivers/staging/tidspbridge/dynload/header.h @@ -14,10 +14,6 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#ifndef NULL -#define NULL 0 -#endif - #include #define DL_STRCMP strcmp diff --git a/drivers/staging/tidspbridge/hw/GlobalTypes.h b/drivers/staging/tidspbridge/hw/GlobalTypes.h index c67c91be1a4e..4d142a180491 100644 --- a/drivers/staging/tidspbridge/hw/GlobalTypes.h +++ b/drivers/staging/tidspbridge/hw/GlobalTypes.h @@ -19,15 +19,6 @@ #ifndef _GLOBALTYPES_H #define _GLOBALTYPES_H -/* - * Definition: NULL - * - * DESCRIPTION: Invalid pointer - */ -#ifndef NULL -#define NULL (void *)0 -#endif - /* * Definition: RET_CODE_BASE * diff --git a/drivers/staging/tidspbridge/include/dspbridge/dbtype.h b/drivers/staging/tidspbridge/include/dspbridge/dbtype.h index 0b2cb93c050e..ca5eaf8a2985 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/dbtype.h +++ b/drivers/staging/tidspbridge/include/dspbridge/dbtype.h @@ -41,14 +41,6 @@ #define CONST const #endif -/*===========================================================================*/ -/* NULL (Definition is language specific) */ -/*===========================================================================*/ - -#ifndef NULL -#define NULL ((void *)0) /* Null pointer. */ -#endif - /*===========================================================================*/ /* NULL character (normally used for string termination) */ /*===========================================================================*/ diff --git a/drivers/staging/tidspbridge/include/dspbridge/std.h b/drivers/staging/tidspbridge/include/dspbridge/std.h index 7e09fec18ee2..ca2827d92e2e 100644 --- a/drivers/staging/tidspbridge/include/dspbridge/std.h +++ b/drivers/staging/tidspbridge/include/dspbridge/std.h @@ -74,10 +74,6 @@ typedef s32(*fxn) (void); /* generic function type */ -#ifndef NULL -#define NULL 0 -#endif - /* * These macros are used to cast 'Arg' types to 's32' or 'Ptr'. * These macros were added for the 55x since Arg is not the same