[Pcsclite-cvs-commit] r5834 - /trunk/Drivers/ccid/src/commands.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Wed Jul 6 09:19:08 UTC 2011


Author: rousseau
Date: Wed Jul  6 09:19:08 2011
New Revision: 5834

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=5834
Log:
T0ProcSW1(): remove dead code.

The case (return_value != IFD_SUCCESS) is already treated a few lines
above.

coverity: Event dead_error_begin: Execution cannot reach this statement
"rcv_buf_tmp[0] = rcv_buf_tm...".

Modified:
    trunk/Drivers/ccid/src/commands.c

Modified: trunk/Drivers/ccid/src/commands.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/Drivers/ccid/src/commands.c?rev=5834&op=diff
==============================================================================
--- trunk/Drivers/ccid/src/commands.c (original)
+++ trunk/Drivers/ccid/src/commands.c Wed Jul  6 09:19:08 2011
@@ -1818,12 +1818,6 @@
 	sw2 = *rcv_buf = *in_buf;
 	in_len--;
 	(*rcv_len)++;
-
-	if (return_value != IFD_SUCCESS)
-	{
-		rcv_buf_tmp[0] = rcv_buf_tmp[1] = 0;
-		*rcv_len = rcv_len_tmp;
-	}
 
 	DEBUG_COMM3("Exit: SW=%02X %02X", sw1, sw2);
 




More information about the Pcsclite-cvs-commit mailing list