Do not print an error message when a binary is corrupt

This commit is contained in:
Thomas Veerman 2011-04-12 13:09:19 +00:00
parent c51cd5fe91
commit f0740680cd

View file

@ -244,12 +244,7 @@ static int load_aout(struct exec_info *execi)
off += text_bytes;
if (r == OK) r = read_seg(vp, off, proc_e, D, 0, data_bytes);
if (r != OK) {
printf("VFS: load_aout: read_seg failed: %d\n", r);
return (r);
}
return(OK);
return (r);
}
static int load_elf(struct exec_info *execi)
@ -301,12 +296,7 @@ static int load_elf(struct exec_info *execi)
if (r == OK)
r = read_seg(vp, data_offset, proc_e, D, data_vaddr, data_filebytes);
if (r != OK) {
printf("VFS: load_elf: read_seg failed: %d\n", r);
return (r);
}
return(OK);
return(r);
}
/*===========================================================================*