diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2016-03-03 13:53:38 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-03-03 14:18:30 -0500 |
commit | 0d4cc7cdc686aa5ef35336f627b09e08b95d52e6 (patch) | |
tree | e9eb1156e2f686ccfc7ca3f6c422d474af52c677 /src | |
parent | 2d38a54bfac5752673c7185c5049daba23425dd7 (diff) | |
download | ti-rpc-0d4cc7cdc686aa5ef35336f627b09e08b95d52e6.tar.gz |
makefd_xprt: remove obsolete check for fd number
makefd_xprt() checks that the filedesriptor is lower than FD_SETSIZE.
But with tirpc now using poll(), this limitation does not exist anymore.
Remove the check completly.
Signed-off-by: Thorsten Kukuk <kukuk@thkukuk.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/svc_vc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/svc_vc.c b/src/svc_vc.c index 6ae613d..7415244 100644 --- a/src/svc_vc.c +++ b/src/svc_vc.c @@ -270,14 +270,8 @@ makefd_xprt(fd, sendsize, recvsize) struct cf_conn *cd; const char *netid; struct __rpc_sockinfo si; - - assert(fd != -1); - if (fd >= FD_SETSIZE) { - warnx("svc_vc: makefd_xprt: fd too high\n"); - xprt = NULL; - goto done; - } + assert(fd != -1); xprt = mem_alloc(sizeof(SVCXPRT)); if (xprt == NULL) { |