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:
Andre Oppermann 2006-01-23 15:49:01 +00:00
parent 3753c2c3f1
commit fd2413398c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=154722

View File

@ -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. */