diff options
author | phk <phk@FreeBSD.org> | 2005-01-13 19:27:28 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2005-01-13 19:27:28 +0000 |
commit | 108b39b8373459ac749bbb19ae2e104ec33f564c (patch) | |
tree | 066279d5f5b281a2f1242ea74f196784e704d110 /sys | |
parent | f680a8e5f3f35df97da1d83bf4e48e521e8432dd (diff) | |
download | FreeBSD-src-108b39b8373459ac749bbb19ae2e104ec33f564c.zip FreeBSD-src-108b39b8373459ac749bbb19ae2e104ec33f564c.tar.gz |
Remove duplicate code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/pecoff/imgact_pecoff.c | 4 |
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; |