summaryrefslogtreecommitdiffstats
path: root/api/api.c
diff options
context:
space:
mode:
Diffstat (limited to 'api/api.c')
-rw-r--r--api/api.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/api/api.c b/api/api.c
index c1b2b60aeb..19c71540c0 100644
--- a/api/api.c
+++ b/api/api.c
@@ -30,6 +30,7 @@
#include <command.h>
#include <common.h>
#include <malloc.h>
+#include <environment.h>
#include <linux/types.h>
#include <api_public.h>
@@ -40,7 +41,6 @@
/* U-Boot routines needed */
extern int do_reset (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[]);
-extern uchar *env_get_addr(int);
/*****************************************************************************
*
@@ -582,7 +582,7 @@ int syscall(int call, int *retval, ...)
va_list ap;
int rv;
- if (call < 0 || call >= calls_no || calls_table[call] == NULL) {
+ if (call < 0 || call >= calls_no) {
debugf("invalid call #%d\n", call);
return 0;
}