From 8eb62230e8f7849a09c81283f0fd56ce77d72046 Mon Sep 17 00:00:00 2001 From: Lukasz Pawelczyk Date: Tue, 12 Apr 2016 13:34:04 +0200 Subject: [PATCH] Small cosmetic change in digest.c to line it up with the style of the rest of the code. Change-Id: Ib22750311254ffaaa0f241191f9a9fdeed1a00b7 --- src/digest.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/digest.c b/src/digest.c index bd3f62f..93a2535 100644 --- a/src/digest.c +++ b/src/digest.c @@ -147,15 +147,12 @@ API int yaca_digest_init(yaca_ctx_h *ctx, yaca_digest_algo_e algo) *ctx = (yaca_ctx_h)nc; - ret = 0; + return 0; ctx: - if (ret != 0) - EVP_MD_CTX_destroy(nc->mdctx); + EVP_MD_CTX_destroy(nc->mdctx); free: - if (ret != 0) - yaca_free(nc); - + yaca_free(nc); return ret; } -- 2.7.4