summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-01-29 13:13:04 +0100
committerAnton Khirnov <anton@khirnov.net>2019-01-29 13:13:04 +0100
commit3ee39d71042e04f8c5b929b1a4a0cd35436b6665 (patch)
tree0cc41626cf12d9466498d2ef9dc37f5bcfc20aed
parent0c460dd7b9513ee3cb81c81fd9f5e328ebd5c736 (diff)
ell_grid_solve: remove unused variables
-rw-r--r--ell_grid_solve.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/ell_grid_solve.c b/ell_grid_solve.c
index 803bdf2..5b6e586 100644
--- a/ell_grid_solve.c
+++ b/ell_grid_solve.c
@@ -410,7 +410,6 @@ static void residual_add_task(void *arg, unsigned int job_idx, unsigned int thre
{
EGSContext *ctx = arg;
EGSInternal *priv = ctx->priv;
- ptrdiff_t offset = job_idx * priv->stride;
for (int idx0 = 0; idx0 < ctx->domain_size[0]; idx0++) {
ptrdiff_t idx = job_idx * ctx->u_stride + idx0;
@@ -422,7 +421,6 @@ static void residual_add_task(void *arg, unsigned int job_idx, unsigned int thre
static int solve_relax_step(EGSContext *ctx)
{
EGSRelaxContext *r = ctx->solver_data;
- EGSInternal *priv = ctx->priv;
int64_t start;
start = gettime();
@@ -871,7 +869,6 @@ static int arrays_alloc(EGSContext *ctx, const size_t domain_size[2])
EGSContext *mg2di_egs_alloc(enum EGSType type, size_t domain_size[2])
{
EGSContext *ctx;
- EGSInternal *priv;
int ret;
ctx = calloc(1, sizeof(*ctx));
@@ -881,7 +878,6 @@ EGSContext *mg2di_egs_alloc(enum EGSType type, size_t domain_size[2])
ctx->priv = calloc(1, sizeof(*ctx->priv));
if (!ctx->priv)
goto fail;
- priv = ctx->priv;
switch (type) {
case EGS_SOLVER_RELAXATION: