mirror of https://github.com/ARMmbed/mbed-os.git
Supressed coverity warnings for intentional NULL passing to ip_reass_dequeue_datagram
parent
5820a3172f
commit
83aa8b038b
|
@ -206,9 +206,8 @@ ip_reass_free_complete_datagram(struct ip_reassdata *ipr, struct ip_reassdata *p
|
|||
pbuf_free(pcur);
|
||||
}
|
||||
/* Then, unchain the struct ip_reassdata from the list and free it. */
|
||||
if (prev != NULL) {
|
||||
/* coverity [FORWARD_NULL]*/
|
||||
ip_reass_dequeue_datagram(ipr, prev);
|
||||
}
|
||||
LWIP_ASSERT("ip_reass_pbufcount >= pbufs_freed", ip_reass_pbufcount >= pbufs_freed);
|
||||
ip_reass_pbufcount = (u16_t)(ip_reass_pbufcount - pbufs_freed);
|
||||
|
||||
|
@ -662,9 +661,8 @@ ip4_reass(struct pbuf *p)
|
|||
}
|
||||
|
||||
/* release the sources allocate for the fragment queue entry */
|
||||
if (ipr_prev != NULL) {
|
||||
/* coverity [FORWARD_NULL]*/
|
||||
ip_reass_dequeue_datagram(ipr, ipr_prev);
|
||||
}
|
||||
/* and adjust the number of pbufs currently queued for reassembly. */
|
||||
clen = pbuf_clen(p);
|
||||
LWIP_ASSERT("ip_reass_pbufcount >= clen", ip_reass_pbufcount >= clen);
|
||||
|
|
Loading…
Reference in New Issue