nsswitch: Remove a pointless if-clause
authorVolker Lendecke <vl@samba.org>
Sat, 25 Feb 2012 20:20:21 +0000 (21:20 +0100)
committerVolker Lendecke <vl@samba.org>
Sat, 25 Feb 2012 21:14:38 +0000 (22:14 +0100)
gr->num_gr_mem is a uint32, so it can never be < 0

nsswitch/winbind_nss_linux.c

index 7b1675204342e55d665bf619985ff79f6b86b8c1..8d66a740a697d4582c6d5fea34d82c3034761f6c 100644 (file)
@@ -322,7 +322,7 @@ static NSS_STATUS fill_grent(struct group *result, struct winbindd_gr *gr,
 
        /* Group membership */
 
-       if ((gr->num_gr_mem < 0) || !gr_mem) {
+       if (!gr_mem) {
                gr->num_gr_mem = 0;
        }