1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-22 22:04:08 +03:00

param: get rid of unnecessary get_default_loadparm_service pointer

Change-Id: I9f512be671e5cd738c43fd97c9c3e0b4ee7a2736
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Garming Sam 2014-07-09 13:04:00 +12:00 committed by Michael Adam
parent bb8fa510b4
commit 72642f1260
3 changed files with 0 additions and 5 deletions

View File

@ -74,9 +74,6 @@
struct loadparm_service *lpcfg_default_service(struct loadparm_context *lp_ctx)
{
if (lp_ctx->s3_fns) {
return lp_ctx->s3_fns->get_default_loadparm_service();
}
return lp_ctx->sDefault;
}

View File

@ -5,7 +5,6 @@ struct loadparm_s3_helpers
{
void * (*get_parm_ptr)(struct loadparm_service *service, struct parm_struct *parm);
struct loadparm_service * (*get_service)(const char *service_name);
struct loadparm_service * (*get_default_loadparm_service)(void);
struct loadparm_service * (*get_servicebynum)(int snum);
int (*getservicebyname)(const char *, struct loadparm_service *);
int (*get_numservices)(void);

View File

@ -62,7 +62,6 @@ static struct loadparm_s3_helpers s3_fns =
.get_service = lp_service_for_s4_ctx,
.get_servicebynum = lp_servicebynum_for_s4_ctx,
.getservicebyname = getservicebyname,
.get_default_loadparm_service = lp_default_loadparm_service,
.get_numservices = lp_numservices,
.load = lp_load_for_s4_ctx,
.store_cmdline = store_lp_set_cmdline,