gnrc_sixlowpan_frag_vrb: fix cppcheck warning
... which wasn't a false positive after all.
This commit is contained in:
parent
6adf07caf0
commit
5885293e9e
@ -96,10 +96,8 @@ gnrc_sixlowpan_frag_vrb_t *gnrc_sixlowpan_frag_vrb_add(
|
|||||||
while (tmp->next != NULL) {
|
while (tmp->next != NULL) {
|
||||||
if (tmp == base->ints) {
|
if (tmp == base->ints) {
|
||||||
tmp = NULL;
|
tmp = NULL;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
/* cppcheck-suppress nullPointer
|
|
||||||
* (reason: possible bug in cppcheck, tmp can't
|
|
||||||
* clearly be a NULL pointer here) */
|
|
||||||
tmp = tmp->next;
|
tmp = tmp->next;
|
||||||
}
|
}
|
||||||
if (tmp != NULL) {
|
if (tmp != NULL) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user