Skip to content
Snippets Groups Projects
Commit de7dc143 authored by Martine Lenders's avatar Martine Lenders
Browse files

ng_netapi: piggy-back cppcheck catch

parent 6f56b983
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment