diff options
| author | Andrew Bartlett <abartlet@samba.org> | 2014-01-27 15:14:38 +1300 |
|---|---|---|
| committer | Michael Adam <obnox@samba.org> | 2014-01-30 03:31:29 +0100 |
| commit | c2b8d31b133ac1d1e18eae5e52188b2b0b7ea008 (patch) | |
| tree | 5cfb5eb1e25c7d428a3c912243381a26864c5ce7 /source3 | |
| parent | 54f380744a36ec5d91364029af8a0cec2e46438f (diff) | |
| download | samba-c2b8d31b133ac1d1e18eae5e52188b2b0b7ea008.tar.gz samba-c2b8d31b133ac1d1e18eae5e52188b2b0b7ea008.tar.xz samba-c2b8d31b133ac1d1e18eae5e52188b2b0b7ea008.zip | |
param: Do not check defaults_saved in is_default
We only call is_default if defaults_saved == true, so this static variable
reference is not required.
Andrew Bartlett
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Autobuild-User(master): Michael Adam <obnox@samba.org>
Autobuild-Date(master): Thu Jan 30 03:31:29 CET 2014 on sn-devel-104
Diffstat (limited to 'source3')
| -rw-r--r-- | source3/param/loadparm.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 0e69be94e1..4a9e0d70ec 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -3487,8 +3487,6 @@ static bool do_section(const char *pszSectionName, void *userdata) static bool is_default(int i) { - if (!defaults_saved) - return false; switch (parm_table[i].type) { case P_LIST: case P_CMDLIST: |
