card_emu: Remove extraneous initialization of ch->pts.state

ch->pts.state is initialized every time we enter ISO_S_WAIT_TPDU
state, so there's no need to reset it at other locations. KISS.

Change-Id: I5ff8b2671c3c893cc5f6542d48b65487ae8c5be1
This commit is contained in:
Harald Welte
2019-12-15 17:47:26 +01:00
parent 4d4405ff3a
commit 12c9b7ba02

View File

@@ -256,8 +256,6 @@ static void card_handle_reset(struct card_handle *ch)
tc_etu_disable(ch->tc_chan);
ch->tpdu.state = TPDU_S_WAIT_CLA;
/* release any buffers we may still own */
if (ch->uart_tx_msg) {
usb_buf_free(ch->uart_tx_msg);