]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
lib/: find_new_sub_*ids(): Remove dead assertions
authorAlejandro Colomar <alx@kernel.org>
Sun, 15 Mar 2026 13:05:21 +0000 (14:05 +0100)
committerSerge Hallyn <serge@hallyn.com>
Fri, 10 Apr 2026 03:20:34 +0000 (22:20 -0500)
The input to these functions is always an address (&x); that's
guaranteed to be non-null.

Signed-off-by: Alejandro Colomar <alx@kernel.org>
lib/find_new_sub_gids.c
lib/find_new_sub_uids.c

index beb902ed6fdfab94d75fa53d8eff3b307c005df7..082bd07b4a20134a0c5a425a947bc1ebdfa28749 100644 (file)
@@ -34,9 +34,6 @@ int find_new_sub_gids (id_t *range_start, unsigned long *range_count)
        unsigned long count;
        id_t start;
 
-       assert (range_start != NULL);
-       assert (range_count != NULL);
-
        min = getdef_ulong ("SUB_GID_MIN", 100000UL);
        max = getdef_ulong ("SUB_GID_MAX", 600100000UL);
        count = getdef_ulong ("SUB_GID_COUNT", 65536);
index c9c4993d4885ba416f1bacd83d334b5260d07339..1d4e08b732dc38f3526876b606d19aae607fe580 100644 (file)
@@ -34,9 +34,6 @@ int find_new_sub_uids (id_t *range_start, unsigned long *range_count)
        unsigned long count;
        id_t start;
 
-       assert (range_start != NULL);
-       assert (range_count != NULL);
-
        min = getdef_ulong ("SUB_UID_MIN", 100000UL);
        max = getdef_ulong ("SUB_UID_MAX", 600100000UL);
        count = getdef_ulong ("SUB_UID_COUNT", 65536);