[U-Boot-Users] [PATCH] API: remove duplicate syscall check

Jean-Christophe PLAGNIOL-VILLARD plagnioj at jcrosoft.com
Sun May 11 23:13:57 CEST 2008


Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj at jcrosoft.com>
---
 api/api.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/api/api.c b/api/api.c
index c1b2b60..8be0485 100644
--- 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;
 	}
-- 
1.5.5.1





More information about the U-Boot mailing list