Skip to contentSkip to conversation

libcacard/vcard_emul_nss: Remove unused statement (value stored is never read)

PATCH Applied Stefan Weil 2 participants 2 messages Nov 17, 2013 – Dec 2, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libcacard/vcard_emul_nss: Remove unused statement (value stored is never read)

Warning from ccc-analyzer:

libcacard/vcard_emul_nss.c:937:9: warning:
Value stored to 'cert_count' is never read

        cert_count = options->vreader[i].cert_count;
        ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
 libcacard/vcard_emul_nss.c |    1 -
 1 file changed, 1 deletion(-)
libcacard/vcard_emul_nss.c +0 -1
index fb429b1..ee2dfae 100644
@@ -934,7 +934,6 @@ vcard_emul_init(const VCardEmulOptions *options)
         vreader = vreader_new(options->vreader[i].vname, vreader_emul,
                               vreader_emul_delete);
         vreader_add_reader(vreader);
-        cert_count = options->vreader[i].cert_count;
 
         vcard_emul_alloc_arrays(&certs, &cert_len, &keys,
                                 options->vreader[i].cert_count);
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 6 lines · Stefan Weil

Warning from ccc-analyzer:

libcacard/vcard_emul_nss.c:937:9: warning:
Value stored to 'cert_count' is never read

        cert_count = options->vreader[i].cert_count;
        ^            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Applied to trivial patches, thank you!

/mjt