s4-kcc: removed redundent loop check
authorAndrew Tridgell <tridge@samba.org>
Fri, 10 Sep 2010 10:18:11 +0000 (20:18 +1000)
committerAndrew Tridgell <tridge@samba.org>
Wed, 15 Sep 2010 05:39:34 +0000 (15:39 +1000)
el has already been checked for NULL

source4/dsdb/kcc/kcc_service.c

index 4507545355af0b432bc4fa617a796829f411b35b..9bacca9bc798402b1f4f87aed048e1c8b8eff6b2 100644 (file)
@@ -101,7 +101,7 @@ static WERROR kccsrv_load_partitions(struct kccsrv_service *s)
                return WERR_FOOBAR;
        }
 
-       for (i=0; el && i < el->num_values; i++) {
+       for (i=0; i < el->num_values; i++) {
                const char *v = (const char *)el->values[i].data;
                struct ldb_dn *pdn;
                struct kccsrv_partition *p;