From: Jean-Christophe PLAGNIOL-VILLARD Date: Sun, 11 May 2008 21:13:57 +0000 (+0200) Subject: API: remove duplicate syscall check X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=20e5ed137483823aaea5178169f3b144c7a4d9e0;p=u-boot.git API: remove duplicate syscall check Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD --- diff --git a/api/api.c b/api/api.c index c1b2b60aeb..8be0485bdc 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; }