]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
maint: remove unnecessary return statements
authorCollin Funk <collin.funk1@gmail.com>
Sat, 28 Mar 2026 19:48:38 +0000 (12:48 -0700)
committerCollin Funk <collin.funk1@gmail.com>
Sat, 28 Mar 2026 19:48:38 +0000 (12:48 -0700)
* src/env.c (initialize_signals): Remove return at the end of the
function.
* src/who.c (print_runlevel): Likewise.

src/env.c
src/who.c

index d5acab7bda27cb0ca13140173636fd52e8d3d4ed..d0c196782da0ab070798fb35bb9df1f67319f659 100644 (file)
--- a/src/env.c
+++ b/src/env.c
@@ -756,8 +756,6 @@ initialize_signals (void)
 
   for (int i = 0 ; i <= SIGNUM_BOUND; i++)
     signals[i] = UNCHANGED;
-
-  return;
 }
 
 int
index b12a31442aac1d72b428663567960ac9b6176eeb..5b35b8bd7b612cd873553ab97ab632549e01a2cf 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -515,8 +515,6 @@ print_runlevel (STRUCT_UTMP const *utmp_ent)
 
   print_line ("", ' ', runlevline, time_string (utmp_ent),
               "", "", c_isprint (last) ? comment : "", "");
-
-  return;
 }
 
 /* Print the username of each valid entry and the number of valid entries