From: Andre Noll Date: Tue, 15 May 2012 20:15:41 +0000 (+0200) Subject: gcrypt: Remove dead stores. X-Git-Tag: v0.4.11~7^2~5 X-Git-Url: http://git.tue.mpg.de/?a=commitdiff_plain;h=98c13e11d5efd8e49fe3c31386f3abf6979902d6;p=paraslash.git 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; ^ ~~~ --- 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) {