aboutsummaryrefslogtreecommitdiffstats
path: root/erts
diff options
context:
space:
mode:
authorJovi Zhang <[email protected]>2011-11-29 05:23:56 +0800
committerHenrik Nord <[email protected]>2011-12-06 11:04:12 +0100
commit6581e8bbef00ee093fec63c59cb87c913615340a (patch)
tree15c29efba66c1f30afe73106a7eb13744d8141da /erts
parent026a7c04fdf7add071ee61b1ac24a5ebbcbb73db (diff)
downloadotp-6581e8bbef00ee093fec63c59cb87c913615340a.tar.gz
otp-6581e8bbef00ee093fec63c59cb87c913615340a.tar.bz2
otp-6581e8bbef00ee093fec63c59cb87c913615340a.zip
erts: minor fix for unnecessary condition
In "while (retval != -1 && retval == SENDFILE_CHUNK_SIZE)", "retval != -1" is pointless.
Diffstat (limited to 'erts')
-rw-r--r--erts/emulator/drivers/unix/unix_efile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/drivers/unix/unix_efile.c b/erts/emulator/drivers/unix/unix_efile.c
index 72911641d3..e005690d78 100644
--- a/erts/emulator/drivers/unix/unix_efile.c
+++ b/erts/emulator/drivers/unix/unix_efile.c
@@ -1500,7 +1500,7 @@ efile_sendfile(Efile_error* errInfo, int in_fd, int out_fd,
written += retval;
*nbytes -= retval;
}
- } while (retval != -1 && retval == SENDFILE_CHUNK_SIZE);
+ } while (retval == SENDFILE_CHUNK_SIZE);
*nbytes = written;
return check_error(retval == -1 ? -1 : 0, errInfo);
#elif defined(DARWIN)