Skip to content

Commit

Permalink
ng_netapi: piggy-back cppcheck catch
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Jul 28, 2015
1 parent 6f56b98 commit de7dc14
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions sys/net/crosslayer/ng_netapi/ng_netapi.c
Expand Up @@ -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);

Expand Down

0 comments on commit de7dc14

Please sign in to comment.