Eliminate unused variable + calculations in pgpPubkeyFingerprint()
authorPanu Matilainen <pmatilai@redhat.com>
Thu, 3 Mar 2011 13:32:24 +0000 (15:32 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Thu, 3 Mar 2011 13:32:24 +0000 (15:32 +0200)
rpmio/rpmpgp.c

index 9e0fb27..8b7442d 100644 (file)
@@ -1077,7 +1077,6 @@ int pgpPubkeyFingerprint(const uint8_t * pkt, size_t pktlen, pgpKeyID_t keyid)
 {
     unsigned int val = *pkt;
     size_t plen, hlen;
-    pgpTag tag;
     const uint8_t *se, *h;
     DIGEST_CTX ctx;
     int rc = -1;       /* assume failure. */
@@ -1086,10 +1085,8 @@ int pgpPubkeyFingerprint(const uint8_t * pkt, size_t pktlen, pgpKeyID_t keyid)
        return rc;
 
     if (val & 0x40) {
-       tag = (val & 0x3f);
        plen = pgpLen(pkt+1, &hlen);
     } else {
-       tag = (val >> 2) & 0xf;
        plen = (1 << (val & 0x3));
        hlen = pgpGrab(pkt+1, plen);
     }