Remove duplicate code.

This commit is contained in:
phk 2005-01-13 19:27:28 +00:00
parent 02abac9ffd
commit ba66741c34

View File

@ -318,10 +318,6 @@ pecoff_load_file(struct thread * td, const char *file, u_long * addr, u_long * e
* Check permissions, modes, uid, etc on the file, and "open" it.
*/
error = exec_check_permissions(imgp);
if (error) {
VOP_UNLOCK(nd.ni_vp, 0, td);
goto fail;
}
VOP_UNLOCK(nd.ni_vp, 0, td);
if (error)
goto fail;