diff options
author | Harald Welte <laforge@osmocom.org> | 2019-12-15 17:47:26 +0100 |
---|---|---|
committer | Harald Welte <laforge@osmocom.org> | 2019-12-16 14:51:29 +0100 |
commit | 12c9b7ba02436435a7729d4c1042d91b9ac1b073 (patch) | |
tree | cb6254572d54cd9c7d6da418e2cc62746c39ecd4 | |
parent | 4d4405ff3aa54c2894930dbcde5e63f219076423 (diff) |
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
-rw-r--r-- | firmware/libcommon/source/card_emu.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/firmware/libcommon/source/card_emu.c b/firmware/libcommon/source/card_emu.c index 5488fad..ced6b14 100644 --- a/firmware/libcommon/source/card_emu.c +++ b/firmware/libcommon/source/card_emu.c @@ -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); |