gcrypt: Remove pointless assignment.
authorAndre Noll <maan@systemlinux.org>
Tue, 15 May 2012 20:16:38 +0000 (22:16 +0200)
committerAndre Noll <maan@systemlinux.org>
Wed, 13 Jun 2012 11:25:49 +0000 (13:25 +0200)
gcrypt.c:700:6: warning: Assigned value is always the same as the existing value
        ret = key->num_bytes;
        ~~~ ^ ~~~~~~~~~~~~~~

gcrypt.c

index 1e997fb..ea1e771 100644 (file)
--- a/gcrypt.c
+++ b/gcrypt.c
@@ -695,7 +695,6 @@ int get_asymmetric_key(const char *key_file, int private,
        key->num_bytes = ret;
        key->sexp = sexp;
        *result = key;
        key->num_bytes = ret;
        key->sexp = sexp;
        *result = key;
-       ret = key->num_bytes;
 unmap:
        ret2 = para_munmap(map, map_size);
        if (ret >= 0 && ret2 < 0)
 unmap:
        ret2 = para_munmap(map, map_size);
        if (ret >= 0 && ret2 < 0)