* 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
This commit is contained in:
kosaki 2011-05-07 13:44:27 +00:00
parent 9468e945c8
commit 76734388a2
2 changed files with 5 additions and 3 deletions

View File

@ -1,3 +1,7 @@
Sat May 7 22:43:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_zero): remove redundant zero fill.
Sat May 7 22:38:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> Sat May 7 22:38:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_fd_init): remove volatile qualifier. * thread.c (rb_fd_init): remove volatile qualifier.

View File

@ -2350,10 +2350,8 @@ rb_fd_term(rb_fdset_t *fds)
void void
rb_fd_zero(rb_fdset_t *fds) rb_fd_zero(rb_fdset_t *fds)
{ {
if (fds->fdset) { if (fds->fdset)
MEMZERO(fds->fdset, fd_mask, howmany(fds->maxfd, NFDBITS)); MEMZERO(fds->fdset, fd_mask, howmany(fds->maxfd, NFDBITS));
FD_ZERO(fds->fdset);
}
} }
static void static void