aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2019-03-18 14:56:54 +0100
committerAnton Khirnov <anton@khirnov.net>2019-03-18 14:56:54 +0100
commit237cfd200d9061962b98ac17726602d2e681ea33 (patch)
treeeaaadf2d70f853f1863443ae4f6a19f8317c2d04
parent457d8274fde5d20dc5694576b99c5541e55b4f40 (diff)
mg2d: remove unused variable.
-rw-r--r--mg2d.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mg2d.c b/mg2d.c
index 1370aea..9949eee 100644
--- a/mg2d.c
+++ b/mg2d.c
@@ -838,7 +838,6 @@ MG2DContext *mg2d_solver_alloc(size_t domain_size)
{
MG2DContext *ctx;
MG2DInternal *priv;
- int ret;
if (domain_size < 3 || SIZE_MAX / domain_size < domain_size)
return NULL;
@@ -860,7 +859,6 @@ MG2DContext *mg2d_solver_alloc(size_t domain_size)
for (int i = 0; i < ARRAY_ELEMS(ctx->boundaries); i++) {
ctx->boundaries[i] = mg2di_bc_alloc(domain_size);
if (!ctx->boundaries[i]) {
- ret = -ENOMEM;
goto fail;
}
}