aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-22 22:46:57 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-11-22 22:46:57 +0000
commit4f160fa041502845423ef140a1899fbdece06ffb (patch)
treeb22b1a556ae73ca6a6ec8335edbbd38ee3ac501b /io.c
parentf5063b7ea7e774519602f7a112d9acf536a1da33 (diff)
downloadruby-4f160fa041502845423ef140a1899fbdece06ffb.tar.gz
io.c: remove redundant assignment
* io.c (rb_io_sysread): Remove redundan assignment of 'n'. [Fix GH-767] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/io.c b/io.c
index 0d75ee5013..228a2e8129 100644
--- a/io.c
+++ b/io.c
@@ -4724,8 +4724,6 @@ rb_io_sysread(int argc, VALUE *argv, VALUE io)
rb_raise(rb_eIOError, "sysread for buffered IO");
}
- n = fptr->fd;
-
/*
* FIXME: removing rb_thread_wait_fd() here changes sysread semantics
* on non-blocking IOs. However, it's still currently possible