From 108b39b8373459ac749bbb19ae2e104ec33f564c Mon Sep 17 00:00:00 2001 From: phk Date: Thu, 13 Jan 2005 19:27:28 +0000 Subject: Remove duplicate code. --- sys/compat/pecoff/imgact_pecoff.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'sys') diff --git a/sys/compat/pecoff/imgact_pecoff.c b/sys/compat/pecoff/imgact_pecoff.c index 52355f7..b15c65c 100644 --- a/sys/compat/pecoff/imgact_pecoff.c +++ b/sys/compat/pecoff/imgact_pecoff.c @@ -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; -- cgit v1.1