aboutsummaryrefslogtreecommitdiff
path: root/toys/other/dos2unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'toys/other/dos2unix.c')
-rw-r--r--toys/other/dos2unix.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/toys/other/dos2unix.c b/toys/other/dos2unix.c
index 59cd6a53..3e1feb0e 100644
--- a/toys/other/dos2unix.c
+++ b/toys/other/dos2unix.c
@@ -33,10 +33,7 @@ static void do_dos2unix(int fd, char *name)
int len, in, out;
len = read(fd, toybuf+(sizeof(toybuf)/2), sizeof(toybuf)/2);
- if (len<0) {
- perror_msg("%s",name);
- toys.exitval = 1;
- }
+ if (len<0) perror_msg("%s",name);
if (len<1) break;
for (in = out = 0; in < len; in++) {