Skip to contentSkip to conversation

api: remove un-needed ifdef CONFIG_API already handle by the Makefile

PATCH New Jean-Christophe PLAGNIOL-VILLARD 2 participants 2 messages May 13, 2009 – May 15, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 api: remove un-needed ifdef CONFIG_API already handle by the Makefile

---
 api/api.c              |    5 -----
 api/api_net.c          |    5 -----
 api/api_platform-arm.c |    3 ---
 api/api_platform-ppc.c |    5 -----
 api/api_storage.c      |    5 -----
 5 files changed, 0 insertions(+), 23 deletions(-)
api/api.c +0 -5
index f51ebb7..385a7e3 100644
@@ -24,9 +24,6 @@
  */
 
 #include <config.h>
-
-#if defined(CONFIG_API)
-
 #include <command.h>
 #include <common.h>
 #include <malloc.h>
@@ -665,5 +662,3 @@ void platform_set_mr(struct sys_info *si, unsigned long start, unsigned long siz
 			return;
 		}
 }
-
-#endif /* CONFIG_API */
api/api_net.c +0 -5
index 9611ab0..afe072e 100644
@@ -24,9 +24,6 @@
  */
 
 #include <config.h>
-
-#if defined(CONFIG_API)
-
 #include <common.h>
 #include <net.h>
 #include <linux/types.h>
@@ -109,5 +106,3 @@ int dev_read_net(void *cookie, void *buf, int len)
 
 	return eth_receive(buf, len);
 }
-
-#endif /* CONFIG_API */
api/api_platform-arm.c +0 -3
index ca15ca5..fffaa1e 100644
@@ -28,9 +28,6 @@
  */
 
 #include <config.h>
-
-#if defined(CONFIG_API)
-
 #include <linux/types.h>
 #include <api_public.h>
 
api/api_platform-ppc.c +0 -5
index 611a01b..bfcc417 100644
@@ -28,9 +28,6 @@
  */
 
 #include <config.h>
-
-#if defined(CONFIG_API)
-
 #include <linux/types.h>
 #include <api_public.h>
 
@@ -75,5 +72,3 @@ int platform_sys_info(struct sys_info *si)
 
 	return 1;
 }
-
-#endif /* CONFIG_API */
api/api_storage.c +0 -5
index 6fac98b..c535712 100644
@@ -24,9 +24,6 @@
  */
 
 #include <config.h>
-
-#if defined(CONFIG_API)
-
 #include <common.h>
 #include <api_public.h>
 
@@ -391,5 +388,3 @@ lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start
 
 	return (dd->block_read(dev_stor_index(dd), start, len, buf));
 }
-
-#endif /* CONFIG_API */
Signature · 1 line
1.6.1.3
#1 lore raw

PATCH 1/1 api: remove un-needed ifdef CONFIG_API already handle by the Makefile

Dear Jean-Christophe PLAGNIOL-VILLARD,

Quoted 8 lines · In message <[email protected]> you wrote:
---
 api/api.c              |    5 -----
 api/api_net.c          |    5 -----
 api/api_platform-arm.c |    3 ---
 api/api_platform-ppc.c |    5 -----
 api/api_storage.c      |    5 -----
 5 files changed, 0 insertions(+), 23 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Life. Don't talk to me about life.      - Marvin the Paranoid Android