From eed8012ce892877caa16f1130a5e8037e672f043 Mon Sep 17 00:00:00 2001 From: midipix Date: Mon, 24 Oct 2016 22:02:27 -0400 Subject: struct pe_unit_ctx: removed cctx (pass pointer to the driver context instead). --- src/driver/pe_unit_ctx.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/driver/pe_unit_ctx.c') diff --git a/src/driver/pe_unit_ctx.c b/src/driver/pe_unit_ctx.c index 5330659..06a53f9 100644 --- a/src/driver/pe_unit_ctx.c +++ b/src/driver/pe_unit_ctx.c @@ -51,16 +51,12 @@ int pe_get_unit_ctx( return pe_free_unit_ctx_impl(ctx, PERK_NESTED_ERROR(dctx)); - memcpy(&ctx->cctx,dctx->cctx, - sizeof(ctx->cctx)); - ctx->path = path; ctx->ioctx.prot = prot; ctx->uctx.path = &ctx->path; ctx->uctx.map = &ctx->map; ctx->uctx.meta = ctx->meta; - ctx->uctx.cctx = &ctx->cctx; *pctx = &ctx->uctx; return 0; -- cgit v1.2.3