mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-26 10:18:31 +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 */
|
* transmitter and transmit the procedure byte */
|
||||||
card_emu_uart_enable(ch->uart_chan, ENABLE_TX);
|
card_emu_uart_enable(ch->uart_chan, ENABLE_TX);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
ch->tpdu.state = new_ts;
|
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)
|
else if (td->flags & CEMU_DATA_F_PB_AND_RX)
|
||||||
set_tpdu_state(ch, TPDU_S_WAIT_RX);
|
set_tpdu_state(ch, TPDU_S_WAIT_RX);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* check if the buffer has now been fully transmitted */
|
/* 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:
|
case ISO_S_IN_TPDU:
|
||||||
rc = tx_byte_tpdu(ch);
|
rc = tx_byte_tpdu(ch);
|
||||||
break;
|
break;
|
||||||
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (rc)
|
if (rc)
|
||||||
|
|||||||
Reference in New Issue
Block a user