Remove a redundant _get_curthread() call.

This commit is contained in:
David Xu 2005-11-02 14:06:29 +00:00
parent 1f467eaaf8
commit e89510b152

View File

@ -160,7 +160,6 @@ __connect(int fd, const struct sockaddr *name, socklen_t namelen)
int oldcancel;
int ret;
curthread = _get_curthread();
oldcancel = _thr_cancel_enter(curthread);
ret = __sys_connect(fd, name, namelen);
_thr_cancel_leave(curthread, oldcancel);