summaryrefslogtreecommitdiffhomepage
path: root/libbb/full_read.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/full_read.c')
-rw-r--r--libbb/full_read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libbb/full_read.c b/libbb/full_read.c
index b5837d5bd..068d16698 100644
--- a/libbb/full_read.c
+++ b/libbb/full_read.c
@@ -24,7 +24,7 @@ ssize_t full_read(int fd, void *buf, size_t len)
total = 0;
- while (len > 0) {
+ while (len) {
cc = safe_read(fd, buf, len);
if (cc < 0)