Small cosmetic change in digest.c to line it up with the style of the rest of the... 79/65779/2
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Tue, 12 Apr 2016 11:34:04 +0000 (13:34 +0200)
committerMateusz Kulikowski <mateusz.kulikowski@gmail.com>
Wed, 13 Apr 2016 06:52:24 +0000 (23:52 -0700)
Change-Id: Ib22750311254ffaaa0f241191f9a9fdeed1a00b7

src/digest.c

index bd3f62f..93a2535 100644 (file)
@@ -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;
 }