API: remove duplicate syscall check

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
This commit is contained in:
Jean-Christophe PLAGNIOL-VILLARD 2008-05-11 23:13:57 +02:00 committed by Wolfgang Denk
parent f3612a7b19
commit 20e5ed1374
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}