diff options
Diffstat (limited to 'mg2d.c')
-rw-r--r-- | mg2d.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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; } } |