summaryrefslogtreecommitdiff
path: root/htt_rx.c
diff options
context:
space:
mode:
Diffstat (limited to 'htt_rx.c')
-rw-r--r--htt_rx.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/htt_rx.c b/htt_rx.c
index d7e429041065..25ab945fecef 100644
--- a/htt_rx.c
+++ b/htt_rx.c
@@ -807,8 +807,7 @@ int ath10k_htt_rx_alloc(struct ath10k_htt *htt)
}
htt->rx_ring.netbufs_ring =
- kcalloc(htt->rx_ring.size, sizeof(struct sk_buff *),
- GFP_KERNEL);
+ kzalloc_objs(struct sk_buff *, htt->rx_ring.size);
if (!htt->rx_ring.netbufs_ring)
goto err_netbuf;