summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2005-01-13 19:27:28 +0000
committerphk <phk@FreeBSD.org>2005-01-13 19:27:28 +0000
commit108b39b8373459ac749bbb19ae2e104ec33f564c (patch)
tree066279d5f5b281a2f1242ea74f196784e704d110 /sys
parentf680a8e5f3f35df97da1d83bf4e48e521e8432dd (diff)
downloadFreeBSD-src-108b39b8373459ac749bbb19ae2e104ec33f564c.zip
FreeBSD-src-108b39b8373459ac749bbb19ae2e104ec33f564c.tar.gz
Remove duplicate code.
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/pecoff/imgact_pecoff.c4
1 files changed, 0 insertions, 4 deletions
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;
OpenPOWER on IntegriCloud