1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

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
This commit is contained in:
Andrew Bartlett 2014-01-27 15:14:38 +13:00 committed by Michael Adam
parent 54f380744a
commit c2b8d31b13

View File

@ -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: