API: remove duplicate syscall check

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
master
Jean-Christophe PLAGNIOL-VILLARD 17 years ago committed by Wolfgang Denk
parent f3612a7b19
commit 20e5ed1374
  1. 2
      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;
}

Loading…
Cancel
Save