Skip to content

Commit

Permalink
staging: tidspbridge: no need for custom NULL
Browse files Browse the repository at this point in the history
kernel has it's own NULL define, we dont need to introduce our own
custom NULL type!

Signed-off-by: Nishanth Menon <nm@ti.com>
Reviewed-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Nishanth Menon authored and Greg Kroah-Hartman committed Jul 22, 2010
1 parent 5e76806 commit 86dd51e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 25 deletions.
4 changes: 0 additions & 4 deletions drivers/staging/tidspbridge/dynload/header.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,6 @@
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/

#ifndef NULL
#define NULL 0
#endif

#include <linux/string.h>
#define DL_STRCMP strcmp

Expand Down
9 changes: 0 additions & 9 deletions drivers/staging/tidspbridge/hw/GlobalTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down
8 changes: 0 additions & 8 deletions drivers/staging/tidspbridge/include/dspbridge/dbtype.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) */
/*===========================================================================*/
Expand Down
4 changes: 0 additions & 4 deletions drivers/staging/tidspbridge/include/dspbridge/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 86dd51e

Please sign in to comment.