]> git.ipfire.org Git - pakfire.git/commitdiff
digest: Don't assign r when it is never read
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Oct 2024 15:23:09 +0000 (15:23 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 22 Oct 2024 15:23:09 +0000 (15:23 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/digest.c

index 8387d00b1cb9d7fffba909f5abbfedccec078a29..52ae91ee43cc0e10defe757e57ebded4820c4392 100644 (file)
@@ -259,7 +259,6 @@ static EVP_MD_CTX* __pakfire_digest_setup(struct pakfire_ctx* ctx, const EVP_MD*
        if (!evp_ctx) {
                CTX_ERROR(ctx, "Could not initialize OpenSSL context: %s\n",
                        ERR_error_string(ERR_get_error(), NULL));
-               r = 1;
                goto ERROR;
        }
 
@@ -268,7 +267,6 @@ static EVP_MD_CTX* __pakfire_digest_setup(struct pakfire_ctx* ctx, const EVP_MD*
        if (r != 1) {
                CTX_ERROR(ctx, "Could not setup digest: %s\n",
                        ERR_error_string(ERR_get_error(), NULL));
-               r = 1;
                goto ERROR;
        }