]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-param: Remove never-reached condition for popts == NULL
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Aug 2012 11:29:53 +0000 (21:29 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 Aug 2012 15:16:37 +0000 (17:16 +0200)
All the callers provide a parametric options pointer to fill in.

Andrew Bartlett

Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Aug  7 17:16:38 CEST 2012 on sn-devel-104

source3/param/loadparm.c

index 6895ebe4d07e05c5eaa38e17c49d9c11a9a18313..d4ee8a22f2b879a2f22ea8f2389909c76cd4f364 100644 (file)
@@ -1495,10 +1495,6 @@ static void free_param_opts(struct parmlist_entry **popts)
 {
        struct parmlist_entry *opt, *next_opt;
 
-       if (popts == NULL) {
-               return;
-       }
-
        if (*popts != NULL) {
                DEBUG(5, ("Freeing parametrics:\n"));
        }