Date: Sun, 23 Jun 2019 10:45:51 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r349297 - head/lib/libc/gen Message-ID: <201906231045.x5NAjpw4088176@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sun Jun 23 10:45:50 2019 New Revision: 349297 URL: https://svnweb.freebsd.org/changeset/base/349297 Log: Remove redundand 'else' and 'return'. Sponsored by: The FreeBSD Foundation MFC after: 1 week Modified: head/lib/libc/gen/libc_dlopen.c Modified: head/lib/libc/gen/libc_dlopen.c ============================================================================== --- head/lib/libc/gen/libc_dlopen.c Sat Jun 22 23:36:28 2019 (r349296) +++ head/lib/libc/gen/libc_dlopen.c Sun Jun 23 10:45:50 2019 (r349297) @@ -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?201906231045.x5NAjpw4088176>