diff --git a/arch/arm/src/lc823450/lc823450_sddrv_type.h b/arch/arm/src/lc823450/lc823450_sddrv_type.h index a2820bd2b31..7b49033d8ba 100644 --- a/arch/arm/src/lc823450/lc823450_sddrv_type.h +++ b/arch/arm/src/lc823450/lc823450_sddrv_type.h @@ -41,10 +41,6 @@ * Pre-processor Definitions ****************************************************************************/ -#ifndef NULL -# define NULL ((void * ) 0) -#endif - #define TRUE_T (1) /* true */ #define FALSE_T (0) /* false */ diff --git a/arch/arm/src/lpc43xx/spifi/src/spifilib_dev_common.c b/arch/arm/src/lpc43xx/spifi/src/spifilib_dev_common.c index be45d5a2231..91827e28bff 100644 --- a/arch/arm/src/lpc43xx/spifi/src/spifilib_dev_common.c +++ b/arch/arm/src/lpc43xx/spifi/src/spifilib_dev_common.c @@ -39,10 +39,6 @@ * Private types ****************************************************************************/ -#ifndef NULL -#define NULL 0L -#endif - /* Declare the version numbers */ #define LIBRARY_VERSION_MAJOR (1) diff --git a/arch/arm/src/phy62xx/types.h b/arch/arm/src/phy62xx/types.h index 9f4c828282b..f1290aa1823 100644 --- a/arch/arm/src/phy62xx/types.h +++ b/arch/arm/src/phy62xx/types.h @@ -128,18 +128,6 @@ typedef uint8 halDataAlign_t; /* !< Used for byte alignment */ * ------------------------------------------------------------------------ */ -#ifndef TRUE - #define TRUE 1 -#endif - -#ifndef FALSE - #define FALSE 0 -#endif - -#ifndef NULL - #define NULL 0 -#endif - #define HAL_WAIT_CONDITION(condition) {while(!(condition)){}} #define HAL_WAIT_CONDITION_TIMEOUT(condition, timeout) {\ diff --git a/arch/arm/src/sama5/sam_usbhost.c b/arch/arm/src/sama5/sam_usbhost.c index e82fb17b658..629aab676d8 100644 --- a/arch/arm/src/sama5/sam_usbhost.c +++ b/arch/arm/src/sama5/sam_usbhost.c @@ -46,10 +46,6 @@ #define TRENTRY(id,ehci,fmt1,string) {string} -#ifndef NULL -# define NULL ((void *)0) -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/arch/arm/src/samd5e5/sam_usbhost.c b/arch/arm/src/samd5e5/sam_usbhost.c index dc5ceade65d..6a926ddd77d 100644 --- a/arch/arm/src/samd5e5/sam_usbhost.c +++ b/arch/arm/src/samd5e5/sam_usbhost.c @@ -42,10 +42,6 @@ #define TRENTRY(id,fmt1,string) {string} -#ifndef NULL -# define NULL ((void *)0) -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/arch/arm/src/stm32/stm32_usbhost.c b/arch/arm/src/stm32/stm32_usbhost.c index 002968aa663..91e24dbd3a1 100644 --- a/arch/arm/src/stm32/stm32_usbhost.c +++ b/arch/arm/src/stm32/stm32_usbhost.c @@ -41,10 +41,6 @@ #define TRENTRY(id,fmt1,string) {string} -#ifndef NULL -# define NULL ((void *)0) -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/arch/arm/src/stm32l4/stm32l4_usbhost_trace.c b/arch/arm/src/stm32l4/stm32l4_usbhost_trace.c index f3f8a6bc8b9..e2d802426e5 100644 --- a/arch/arm/src/stm32l4/stm32l4_usbhost_trace.c +++ b/arch/arm/src/stm32l4/stm32l4_usbhost_trace.c @@ -41,10 +41,6 @@ #define TRENTRY(id,fmt1,string) {string} -#ifndef NULL -# define NULL ((void *)0) -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/arch/renesas/src/rx65n/rx65n_macrodriver.h b/arch/renesas/src/rx65n/rx65n_macrodriver.h index fbfac120941..b3e2ed5998e 100644 --- a/arch/renesas/src/rx65n/rx65n_macrodriver.h +++ b/arch/renesas/src/rx65n/rx65n_macrodriver.h @@ -27,22 +27,6 @@ #include "arch/rx65n/iodefine.h" -#ifndef TRUE -#define TRUE (1) -#else -#if (1 != TRUE) -#error "TRUE is not defined by 1." -#endif -#endif - -#ifndef FALSE -#define FALSE (0) -#else -#if (0 != FALSE) -#error "FALSE is not defined by 0." -#endif -#endif - #ifndef __TYPEDEF__ /* Status list definition */ diff --git a/boards/arm/kinetis/freedom-k28f/src/k28_automount.c b/boards/arm/kinetis/freedom-k28f/src/k28_automount.c index 6b0f831b5dd..aa713ee5037 100644 --- a/boards/arm/kinetis/freedom-k28f/src/k28_automount.c +++ b/boards/arm/kinetis/freedom-k28f/src/k28_automount.c @@ -39,18 +39,6 @@ #ifdef HAVE_SDHC_AUTOMOUNTER -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL (void *)0 -#endif - -#ifndef OK -# define OK 0 -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/boards/arm/kinetis/freedom-k64f/src/k64_automount.c b/boards/arm/kinetis/freedom-k64f/src/k64_automount.c index 38aa93bf63a..35efbe25192 100644 --- a/boards/arm/kinetis/freedom-k64f/src/k64_automount.c +++ b/boards/arm/kinetis/freedom-k64f/src/k64_automount.c @@ -39,18 +39,6 @@ #ifdef HAVE_AUTOMOUNTER -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL (void *)0 -#endif - -#ifndef OK -# define OK 0 -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/boards/arm/kinetis/freedom-k66f/src/k66_automount.c b/boards/arm/kinetis/freedom-k66f/src/k66_automount.c index 447d2cc2239..397fcd4e0e6 100644 --- a/boards/arm/kinetis/freedom-k66f/src/k66_automount.c +++ b/boards/arm/kinetis/freedom-k66f/src/k66_automount.c @@ -39,18 +39,6 @@ #ifdef HAVE_AUTOMOUNTER -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL (void *)0 -#endif - -#ifndef OK -# define OK 0 -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/boards/arm/sama5/sama5d4-ek/src/sam_automount.c b/boards/arm/sama5/sama5d4-ek/src/sam_automount.c index 9601c457acd..737c6324738 100644 --- a/boards/arm/sama5/sama5d4-ek/src/sam_automount.c +++ b/boards/arm/sama5/sama5d4-ek/src/sam_automount.c @@ -39,18 +39,6 @@ #ifdef HAVE_AUTOMOUNTER -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL (void *)0 -#endif - -#ifndef OK -# define OK 0 -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/boards/arm/samd5e5/metro-m4/include/board.h b/boards/arm/samd5e5/metro-m4/include/board.h index fa9fb07b81c..a239c9a860e 100644 --- a/boards/arm/samd5e5/metro-m4/include/board.h +++ b/boards/arm/samd5e5/metro-m4/include/board.h @@ -31,14 +31,6 @@ * Pre-processor Definitions ****************************************************************************/ -#ifndef TRUE -# define TRUE 1 -#endif - -#ifndef FALSE -# define FALSE 0 -#endif - /* Clocking *****************************************************************/ /* Overview diff --git a/boards/arm/samd5e5/metro-m4/src/sam_automount.c b/boards/arm/samd5e5/metro-m4/src/sam_automount.c index ff81bdf579d..d20cf39a60c 100644 --- a/boards/arm/samd5e5/metro-m4/src/sam_automount.c +++ b/boards/arm/samd5e5/metro-m4/src/sam_automount.c @@ -39,18 +39,6 @@ #ifdef CONFIG_FS_AUTOMOUNTER -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL (void *)0 -#endif - -#ifndef OK -# define OK 0 -#endif - /**************************************************************************** * Private Types ****************************************************************************/ diff --git a/boards/arm/samd5e5/same54-xplained-pro/include/board.h b/boards/arm/samd5e5/same54-xplained-pro/include/board.h index d9eebdccac3..94571684a84 100644 --- a/boards/arm/samd5e5/same54-xplained-pro/include/board.h +++ b/boards/arm/samd5e5/same54-xplained-pro/include/board.h @@ -31,14 +31,6 @@ * Pre-processor Definitions ****************************************************************************/ -#ifndef TRUE -# define TRUE 1 -#endif - -#ifndef FALSE -# define FALSE 0 -#endif - /* Clocking *****************************************************************/ /* Overview diff --git a/mm/iob/iob_add_queue.c b/mm/iob/iob_add_queue.c index da8ca00936b..4a5ffea2d0f 100644 --- a/mm/iob/iob_add_queue.c +++ b/mm/iob/iob_add_queue.c @@ -36,14 +36,6 @@ #if CONFIG_IOB_NCHAINS > 0 -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Private Functions ****************************************************************************/ diff --git a/mm/iob/iob_free_queue.c b/mm/iob/iob_free_queue.c index 81362604d18..526be445db2 100644 --- a/mm/iob/iob_free_queue.c +++ b/mm/iob/iob_free_queue.c @@ -32,14 +32,6 @@ #if CONFIG_IOB_NCHAINS > 0 -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/mm/iob/iob_free_queue_qentry.c b/mm/iob/iob_free_queue_qentry.c index 07f0ebbe535..1597418f5ba 100644 --- a/mm/iob/iob_free_queue_qentry.c +++ b/mm/iob/iob_free_queue_qentry.c @@ -33,14 +33,6 @@ #if CONFIG_IOB_NCHAINS > 0 -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/mm/iob/iob_initialize.c b/mm/iob/iob_initialize.c index ea54a13a12c..af76cdc2266 100644 --- a/mm/iob/iob_initialize.c +++ b/mm/iob/iob_initialize.c @@ -30,14 +30,6 @@ #include "iob.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Private Data ****************************************************************************/ diff --git a/mm/iob/iob_peek_queue.c b/mm/iob/iob_peek_queue.c index 4912cd22d0c..ca6468ef730 100644 --- a/mm/iob/iob_peek_queue.c +++ b/mm/iob/iob_peek_queue.c @@ -32,14 +32,6 @@ #if CONFIG_IOB_NCHAINS > 0 -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/mm/iob/iob_remove_queue.c b/mm/iob/iob_remove_queue.c index 7931d362f0f..04953867c17 100644 --- a/mm/iob/iob_remove_queue.c +++ b/mm/iob/iob_remove_queue.c @@ -34,14 +34,6 @@ #if CONFIG_IOB_NCHAINS > 0 -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/mm/iob/iob_trimhead.c b/mm/iob/iob_trimhead.c index db72bc69ab0..2b176a08cea 100644 --- a/mm/iob/iob_trimhead.c +++ b/mm/iob/iob_trimhead.c @@ -31,14 +31,6 @@ #include "iob.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/mm/iob/iob_trimhead_queue.c b/mm/iob/iob_trimhead_queue.c index 85fc59c6fc9..906d0fc4846 100644 --- a/mm/iob/iob_trimhead_queue.c +++ b/mm/iob/iob_trimhead_queue.c @@ -33,14 +33,6 @@ #if CONFIG_IOB_NCHAINS > 0 -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((FAR void *)0) -#endif - /**************************************************************************** * Public Functions ****************************************************************************/ diff --git a/mm/mm_heap/mm_malloc.c b/mm/mm_heap/mm_malloc.c index 34e64d70418..72b40c9b8bf 100644 --- a/mm/mm_heap/mm_malloc.c +++ b/mm/mm_heap/mm_malloc.c @@ -36,14 +36,6 @@ #include "mm_heap/mm.h" #include "kasan/kasan.h" -/**************************************************************************** - * Pre-processor Definitions - ****************************************************************************/ - -#ifndef NULL -# define NULL ((void *)0) -#endif - /**************************************************************************** * Private Functions ****************************************************************************/