summaryrefslogtreecommitdiff
path: root/ring.c
diff options
context:
space:
mode:
Diffstat (limited to 'ring.c')
-rw-r--r--ring.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ring.c b/ring.c
index b0feea0..b5c626c 100644
--- a/ring.c
+++ b/ring.c
@@ -49,8 +49,7 @@ void alloc_ring_frames_generic(struct ring *ring, size_t num, size_t size)
{
size_t i, len = num * sizeof(*ring->frames);
- ring->frames = xmalloc_aligned(len, CO_CACHE_LINE_SIZE);
- fmemset(ring->frames, 0, len);
+ ring->frames = xzmalloc_aligned(len, CO_CACHE_LINE_SIZE);
for (i = 0; i < num; ++i) {
ring->frames[i].iov_len = size;
les_table_enable()
If something fails in nf_tables_table_enable(), it unregisters the chains. But the rollback code is the same as nf_tables_table_disable() almostly, except there is one counter check. Now create one wrapper function to eliminate the duplicated codes. Signed-off-by: Feng <fgao@ikuai8.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'sound/soc/codecs/da732x.h')