aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKonstantin Belousov <kib@FreeBSD.org>2019-06-23 10:45:50 +0000
committerKonstantin Belousov <kib@FreeBSD.org>2019-06-23 10:45:50 +0000
commitdfdc07bc4307d27650a15bc40786bf89cc6c0279 (patch)
tree06ad7df585ff0a7f78bddaeebb785821b678d15d /lib
parent31d2b1cf99062a653040112f2a43a5aa6f70d8b0 (diff)
downloadsrc-dfdc07bc4307d27650a15bc40786bf89cc6c0279.tar.gz
src-dfdc07bc4307d27650a15bc40786bf89cc6c0279.zip
Remove redundand 'else' and 'return'.
Sponsored by: The FreeBSD Foundation MFC after: 1 week
Notes
Notes: svn path=/head/; revision=349297
Diffstat (limited to 'lib')
-rw-r--r--lib/libc/gen/libc_dlopen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/libc/gen/libc_dlopen.c b/lib/libc/gen/libc_dlopen.c
index fe28d56f8cb0..5c386b649456 100644
--- a/lib/libc/gen/libc_dlopen.c
+++ b/lib/libc/gen/libc_dlopen.c
@@ -48,8 +48,8 @@ libc_dlopen(const char *path, int mode)
if (__libc_restricted_mode) {
_rtld_error("Service unavailable -- libc in restricted mode");
return (NULL);
- } else
- return (dlopen(path, mode));
+ }
+ return (dlopen(path, mode));
}
void
@@ -57,6 +57,5 @@ __FreeBSD_libc_enter_restricted_mode(void)
{
__libc_restricted_mode = 1;
- return;
}