From a35c7f3f51a36977a9b39142edad648c450f5573 Mon Sep 17 00:00:00 2001 From: lloyd Date: Mon, 24 Nov 2008 17:00:00 +0000 Subject: In es_ftw, remove check for if the return value of read() is larger than the value we gave it. This is pretty unlikely... also caused an annoying warning with some versions of GCC b/c it couldn't figure out the signed/unsigned comparison was safe in this case. --- src/entropy/proc_walk/es_ftw.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/entropy') diff --git a/src/entropy/proc_walk/es_ftw.cpp b/src/entropy/proc_walk/es_ftw.cpp index f92a0cf82..1ad6c56b6 100644 --- a/src/entropy/proc_walk/es_ftw.cpp +++ b/src/entropy/proc_walk/es_ftw.cpp @@ -136,7 +136,7 @@ u32bit FTW_EntropySource::slow_poll(byte buf[], u32bit length) ssize_t got = ::read(fd, read_buf.begin(), read_buf.size()); - if(got > 0 && got <= read_buf.size()) + if(got > 0) { buf_i = xor_into_buf(buf, buf_i, length, read_buf, got); -- cgit v1.2.3