From 98c13e11d5efd8e49fe3c31386f3abf6979902d6 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 15 May 2012 22:15:41 +0200 Subject: [PATCH] gcrypt: Remove dead stores. gcrypt.c:502:2: warning: Value stored to 'cp' is never read cp += ret; ^ ~~~ gcrypt.c:577:2: warning: Value stored to 'cp' is never read cp += ret; ^ ~~~ --- gcrypt.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/gcrypt.c b/gcrypt.c index d11e94c7..1e997fb4 100644 --- a/gcrypt.c +++ b/gcrypt.c @@ -499,7 +499,6 @@ static int get_private_key(const char *key_file, struct asymmetric_key **result) ret = read_bignum(cp, end, &u, NULL); if (ret < 0) goto release_q; - cp += ret; /* * OpenSSL uses slightly different parameters than gcrypt. To use these * parameters we need to swap the values of p and q and recompute u. @@ -574,7 +573,6 @@ static int get_asn_public_key(const char *key_file, struct asymmetric_key **resu ret = read_bignum(cp, end, &e, NULL); if (ret < 0) goto release_n; - cp += ret; gret = gcry_sexp_build(&sexp, &erroff, RSA_PUBKEY_SEXP, n, e); if (gret) { -- 2.39.5