From 20e5ed137483823aaea5178169f3b144c7a4d9e0 Mon Sep 17 00:00:00 2001
From: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Date: Sun, 11 May 2008 23:13:57 +0200
Subject: [PATCH] API: remove duplicate syscall check

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 api/api.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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