diff options
author | andre <andre@FreeBSD.org> | 2006-01-23 15:49:01 +0000 |
---|---|---|
committer | andre <andre@FreeBSD.org> | 2006-01-23 15:49:01 +0000 |
commit | b7dae7ac6c1448ab1a44fa97c98b37a16186d613 (patch) | |
tree | aee26e3c00911a4c9d9ad03ce2d15ad04dee9bb0 /sys/kern/kern_mbuf.c | |
parent | e67b09cd21820390f4c86d2ad69642fadaf52745 (diff) | |
download | FreeBSD-src-b7dae7ac6c1448ab1a44fa97c98b37a16186d613.zip FreeBSD-src-b7dae7ac6c1448ab1a44fa97c98b37a16186d613.tar.gz |
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
Diffstat (limited to 'sys/kern/kern_mbuf.c')
-rw-r--r-- | sys/kern/kern_mbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_mbuf.c b/sys/kern/kern_mbuf.c index e9e43b8..514eca4 100644 --- a/sys/kern/kern_mbuf.c +++ b/sys/kern/kern_mbuf.c @@ -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. */ |