Skip to content

Commit

Permalink
libcacard/cac: Remove unused statement (value stored is never read)
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Michael Tokarev <[email protected]>
  • Loading branch information
stweil authored and Michael Tokarev committed Dec 2, 2013
1 parent cb77e35 commit 754e72e
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion libcacard/cac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 754e72e

Please sign in to comment.