mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
ng_netapi: piggy-back cppcheck catch
This commit is contained in:
parent
6f56b983f0
commit
de7dc143b7
@ -70,10 +70,9 @@ static inline int _snd_rcv_dispatch(ng_nettype_t type, uint32_t demux_ctx,
|
||||
uint16_t cmd, ng_pktsnip_t *pkt)
|
||||
{
|
||||
int numof = ng_netreg_num(type, demux_ctx);
|
||||
ng_netreg_entry_t *sendto;
|
||||
|
||||
if (numof != 0) {
|
||||
sendto = ng_netreg_lookup(type, demux_ctx);
|
||||
ng_netreg_entry_t *sendto = ng_netreg_lookup(type, demux_ctx);
|
||||
|
||||
ng_pktbuf_hold(pkt, numof - 1);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user