modem: ppp: coverity 330618: explicitly ignore retval
Explicitly ignore the return value of net_pkt_read_u8() as the net_pkt is validated before being queued for transmit within modem_ppp_ppp_api_send() Signed-off-by: Bjarki Arge Andreasen <bjarki@arge-andreasen.me>
This commit is contained in:
parent
8e6cff0176
commit
016b4f1d33
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ static uint8_t modem_ppp_wrap_net_pkt_byte(struct modem_ppp *ppp)
|
|||
|
||||
/* Writing data */
|
||||
case MODEM_PPP_TRANSMIT_STATE_DATA:
|
||||
net_pkt_read_u8(ppp->tx_pkt, &byte);
|
||||
(void)net_pkt_read_u8(ppp->tx_pkt, &byte);
|
||||
ppp->tx_pkt_fcs = modem_ppp_fcs_update(ppp->tx_pkt_fcs, byte);
|
||||
|
||||
if ((byte == MODEM_PPP_CODE_DELIMITER) || (byte == MODEM_PPP_CODE_ESCAPE) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue