gnrc_sixlowpan_frag_vrb: fix cppcheck warning

... which wasn't a false positive after all.
This commit is contained in:
Martine S. Lenders 2020-08-03 12:28:03 +02:00
parent 6adf07caf0
commit 5885293e9e
No known key found for this signature in database
GPG Key ID: CCD317364F63286F

View File

@ -96,10 +96,8 @@ gnrc_sixlowpan_frag_vrb_t *gnrc_sixlowpan_frag_vrb_add(
while (tmp->next != NULL) {
if (tmp == base->ints) {
tmp = NULL;
break;
}
/* cppcheck-suppress nullPointer
* (reason: possible bug in cppcheck, tmp can't
* clearly be a NULL pointer here) */
tmp = tmp->next;
}
if (tmp != NULL) {