[Pcsclite-cvs-commit] r5521 - /trunk/PCSC/src/atrhandler.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 18 15:48:10 UTC 2011


Author: rousseau
Date: Tue Jan 18 15:48:08 2011
New Revision: 5521

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5521
Log:
ATRDecodeAtr(): remove unused code

src/atrhandler.c:55:2: warning: Value stored to 'p' is never read
        p = K = TCK = Y1i = T = 0;
        ^   ~~~~~~~~~~~~~~~~~~~~~
src/atrhandler.c:55:6: warning: Although the value stored to 'K' is used in the
      enclosing expression, the value is never actually read from 'K'
        p = K = TCK = Y1i = T = 0;
            ^   ~~~~~~~~~~~~~~~~~
src/atrhandler.c:55:10: warning: Although the value stored to 'TCK' is used in
      the enclosing expression, the value is never actually read from 'TCK'
        p = K = TCK = Y1i = T = 0;
                ^     ~~~~~~~~~~~
src/atrhandler.c:55:16: warning: Although the value stored to 'Y1i' is used in
      the enclosing expression, the value is never actually read from 'Y1i'
        p = K = TCK = Y1i = T = 0;
                      ^     ~~~~~
src/atrhandler.c:55:22: warning: Although the value stored to 'T' is used in the
      enclosing expression, the value is never actually read from 'T'
        p = K = TCK = Y1i = T = 0;
                            ^   ~

Modified:
    trunk/PCSC/src/atrhandler.c

Modified: trunk/PCSC/src/atrhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/atrhandler.c?rev=5521&op=diff
==============================================================================
--- trunk/PCSC/src/atrhandler.c (original)
+++ trunk/PCSC/src/atrhandler.c Tue Jan 18 15:48:08 2011
@@ -48,11 +48,6 @@
 	UCHAR K, TCK;				/* MSN of T0/Check Sum */
 	UCHAR Y1i, T;				/* MSN/LSN of TDi */
 	int i = 1;					/* value of the index in TAi, TBi, etc. */
-
-	/*
-	 * Zero out everything
-	 */
-	p = K = TCK = Y1i = T = 0;
 
 #ifdef ATR_DEBUG
 	if (dwLength > 0)




More information about the Pcsclite-cvs-commit mailing list