mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
card_emu: Fix various compiler warnings by switch/default/break
This commit is contained in:
@@ -538,6 +538,8 @@ static void set_tpdu_state(struct card_handle *ch, enum tpdu_state new_ts)
|
||||
* transmitter and transmit the procedure byte */
|
||||
card_emu_uart_enable(ch->uart_chan, ENABLE_TX);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
ch->tpdu.state = new_ts;
|
||||
@@ -692,6 +694,8 @@ static int tx_byte_tpdu(struct card_handle *ch)
|
||||
else if (td->flags & CEMU_DATA_F_PB_AND_RX)
|
||||
set_tpdu_state(ch, TPDU_S_WAIT_RX);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
/* check if the buffer has now been fully transmitted */
|
||||
@@ -785,6 +789,8 @@ int card_emu_tx_byte(struct card_handle *ch)
|
||||
case ISO_S_IN_TPDU:
|
||||
rc = tx_byte_tpdu(ch);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
if (rc)
|
||||
|
||||
Reference in New Issue
Block a user