]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
API: remove duplicate syscall check
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Sun, 11 May 2008 21:13:57 +0000 (23:13 +0200)
committerWolfgang Denk <wd@denx.de>
Sun, 11 May 2008 22:23:58 +0000 (00:23 +0200)
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
api/api.c

index c1b2b60aeb175a339cc090819e6136945f0438af..8be0485bdcfd94f7919f85c57481a07c2de56c11 100644 (file)
--- a/api/api.c
+++ b/api/api.c
@@ -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;
        }