git.samba.org
/
amitay
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebb04f4
)
lib/param: Do not check defaults_saved in is_default
author
Andrew Bartlett
<abartlet@samba.org>
Mon, 27 Jan 2014 02:13:49 +0000
(15:13 +1300)
committer
Michael Adam
<obnox@samba.org>
Thu, 30 Jan 2014 00:24:24 +0000
(
01:24
+0100)
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>
lib/param/loadparm.c
patch
|
blob
|
history
diff --git
a/lib/param/loadparm.c
b/lib/param/loadparm.c
index ae5f01cd38bac6fe1033d41752451d2c59845512..933afcb83f2fc7f69ee10abca389ca865e91c644 100644
(file)
--- a/
lib/param/loadparm.c
+++ b/
lib/param/loadparm.c
@@
-1797,8
+1797,6
@@
static bool do_section(const char *pszSectionName, void *userdata)
static bool is_default(struct loadparm_service *sDefault, int i)
{
void *def_ptr = ((char *)sDefault) + parm_table[i].offset;
- if (!defaults_saved)
- return false;
switch (parm_table[i].type) {
case P_CMDLIST:
case P_LIST: