diff options
author | Stefan Weil | 2013-11-17 22:11:23 +0100 |
---|---|---|
committer | Michael Tokarev | 2013-12-02 18:07:02 +0100 |
commit | 754e72e195faca8042072ada054bc3668aa1647d (patch) | |
tree | 71e44a959e6f3b8dbc8263b9972395f48c8ce889 /libcacard/cac.c | |
parent | virtio-net: fix the indent (diff) | |
download | qemu-754e72e195faca8042072ada054bc3668aa1647d.tar.gz qemu-754e72e195faca8042072ada054bc3668aa1647d.tar.xz qemu-754e72e195faca8042072ada054bc3668aa1647d.zip |
libcacard/cac: Remove unused statement (value stored is never read)
Warning from ccc-analyzer:
libcacard/cac.c:192:13: warning: Value stored to 'ret' is never read
ret = VCARD_DONE;
^ ~~~~~~~~~~
Here 'ret' is assigned a value inside of a switch statement and also after
that switch statement.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
Diffstat (limited to 'libcacard/cac.c')
-rw-r--r-- | libcacard/cac.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/libcacard/cac.c b/libcacard/cac.c index 7a06b5a31b..74ef3e3cec 100644 --- a/libcacard/cac.c +++ b/libcacard/cac.c @@ -189,7 +189,6 @@ cac_applet_pki_process_apdu(VCard *card, VCardAPDU *apdu, pki_applet->sign_buffer = sign_buffer; pki_applet->sign_buffer_len = size; *response = vcard_make_response(VCARD7816_STATUS_SUCCESS); - ret = VCARD_DONE; break; case 0x00: /* we now have the whole buffer, do the operation, result will be |