From: Volker Lendecke Date: Sat, 25 Feb 2012 20:20:21 +0000 (+0100) Subject: nsswitch: Remove a pointless if-clause X-Git-Tag: tdb-1.2.10~616 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a5c044644f7387cb0859f823f91d735e94594b7a;p=thirdparty%2Fsamba.git nsswitch: Remove a pointless if-clause gr->num_gr_mem is a uint32, so it can never be < 0 --- diff --git a/nsswitch/winbind_nss_linux.c b/nsswitch/winbind_nss_linux.c index 7b167520434..8d66a740a69 100644 --- a/nsswitch/winbind_nss_linux.c +++ b/nsswitch/winbind_nss_linux.c @@ -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; }