Date: Wed, 3 Jul 2019 19:22:25 +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-12@freebsd.org Subject: svn commit: r349676 - stable/12/lib/libc/gen Message-ID: <201907031922.x63JMP8P062873@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Wed Jul 3 19:22:25 2019 New Revision: 349676 URL: https://svnweb.freebsd.org/changeset/base/349676 Log: MFC r349297: Remove redundand 'else' and 'return'. Modified: stable/12/lib/libc/gen/libc_dlopen.c Directory Properties: stable/12/ (props changed) Modified: stable/12/lib/libc/gen/libc_dlopen.c ============================================================================== --- stable/12/lib/libc/gen/libc_dlopen.c Wed Jul 3 19:21:03 2019 (r349675) +++ stable/12/lib/libc/gen/libc_dlopen.c Wed Jul 3 19:22:25 2019 (r349676) @@ -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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907031922.x63JMP8P062873>