summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authorkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-07 13:44:27 +0000
committerkosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-05-07 13:44:27 +0000
commit76734388a22c1ffed89e18d916a4215034898b39 (patch)
tree39be13695c82535d55bd0415d4a8c48643784113 /thread.c
parent9468e945c8877af9d33044e5813627282a7700f4 (diff)
* thread.c (rb_fd_zero): remove redundant zero fill.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 55236b7f8e..182feb31a1 100644
--- a/thread.c
+++ b/thread.c
@@ -2350,10 +2350,8 @@ rb_fd_term(rb_fdset_t *fds)
void
rb_fd_zero(rb_fdset_t *fds)
{
- if (fds->fdset) {
+ if (fds->fdset)
MEMZERO(fds->fdset, fd_mask, howmany(fds->maxfd, NFDBITS));
- FD_ZERO(fds->fdset);
- }
}
static void