In mb_zinit_pack() explicitly ignore the return value of uma_zalloc_arg().
The success of the cluster allocation is checked through a field in the mbuf structure. This change is non-functional but properly silences code inspection tools. Found by: Coverity Prevent(tm) Coverity ID: CID807 Sponsored by: TCP/IP Optimization Fundraise 2005
This commit is contained in:
parent
3753c2c3f1
commit
fd2413398c
@ -434,7 +434,7 @@ mb_zinit_pack(void *mem, int size, int how)
|
||||
struct mbuf *m;
|
||||
|
||||
m = (struct mbuf *)mem; /* m is virgin. */
|
||||
uma_zalloc_arg(zone_clust, m, how);
|
||||
(void)uma_zalloc_arg(zone_clust, m, how);
|
||||
if (m->m_ext.ext_buf == NULL)
|
||||
return (ENOMEM);
|
||||
m->m_ext.ext_type = EXT_PACKET; /* Override. */
|
||||
|
Loading…
x
Reference in New Issue
Block a user