[Pcsclite-cvs-commit] r6565 - /trunk/Drivers/ccid/src/openct/proto-t1.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Mar 6 14:29:28 UTC 2013


Author: rousseau
Date: Wed Mar  6 14:29:28 2013
New Revision: 6565

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6565
Log:
cppcheck: Variable 'sent_length' is assigned a value that is never used.

Modified:
    trunk/Drivers/ccid/src/openct/proto-t1.c

Modified: trunk/Drivers/ccid/src/openct/proto-t1.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/openct/proto-t1.c?rev=6565&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/openct/proto-t1.c (original)
+++ trunk/Drivers/ccid/src/openct/proto-t1.c Wed Mar  6 14:29:28 2013
@@ -158,7 +158,7 @@
 {
 	ct_buf_t sbuf, rbuf, tbuf;
 	unsigned char sdata[T1_BUFFER_SIZE], sblk[5];
-	unsigned int slen, retries, resyncs, sent_length = 0;
+	unsigned int slen, retries, resyncs;
 	size_t last_send = 0;
 
 	if (snd_len == 0)
@@ -331,7 +331,6 @@
 			 * block successfully */
 			if (t1_seq(pcb) != t1->ns) {
 				ct_buf_get(&sbuf, NULL, last_send);
-				sent_length += last_send;
 				last_send = 0;
 				t1->ns ^= 1;
 			}
@@ -393,7 +392,6 @@
 				DEBUG_COMM("S-Block answer received");
 				/* ISO 7816-3 Rule 6.3 */
 				t1->state = SENDING;
-				sent_length = 0;
 				last_send = 0;
 				resyncs = 3;
 				retries = t1->retries;




More information about the Pcsclite-cvs-commit mailing list