svn commit: r349676 - stable/12/lib/libc/gen

Konstantin Belousov kib at FreeBSD.org
Wed Jul 3 19:22:26 UTC 2019


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;
 }
 


More information about the svn-src-stable-12 mailing list