Date: Wed, 3 Jul 2019 19:23:21 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r349678 - stable/11/lib/libc/gen Message-ID: <201907031923.x63JNLKI063026@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Jul 3 19:23:20 2019 New Revision: 349678 URL: https://svnweb.freebsd.org/changeset/base/349678 Log: MFC r349297: Remove redundand 'else' and 'return'. Modified: stable/11/lib/libc/gen/libc_dlopen.c Directory Properties: stable/11/ (props changed) Modified: stable/11/lib/libc/gen/libc_dlopen.c ============================================================================== --- stable/11/lib/libc/gen/libc_dlopen.c Wed Jul 3 19:22:44 2019 (r349677) +++ stable/11/lib/libc/gen/libc_dlopen.c Wed Jul 3 19:23:20 2019 (r349678) @@ -47,8 +47,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 @@ -56,6 +56,5 @@ __FreeBSD_libc_enter_restricted_mode(void) { __libc_restricted_mode = 1; - return; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907031923.x63JNLKI063026>