s3-param: Remove never-reached condition for opt_list == NULL
authorAndrew Bartlett <abartlet@samba.org>
Tue, 7 Aug 2012 11:20:47 +0000 (21:20 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 7 Aug 2012 13:20:54 +0000 (23:20 +1000)
All the callers provide a parametric options pointer to fill in.

Andrew Bartlett

source3/param/loadparm.c

index 9c49eb094b4a815ed70609f3f518d0a02ceea0bc..6895ebe4d07e05c5eaa38e17c49d9c11a9a18313 100644 (file)
@@ -2254,10 +2254,6 @@ static void set_param_opt(struct parmlist_entry **opt_list,
        struct parmlist_entry *new_opt, *opt;
        bool not_added;
 
-       if (opt_list == NULL) {
-               return;
-       }
-
        opt = *opt_list;
        not_added = true;