struct ieee80211_low_level_stats low_stats;
};
-static inline struct vnt_rd_info *alloc_rd_info(void)
-{
- return kzalloc(sizeof(struct vnt_rd_info), GFP_ATOMIC);
-}
-
static inline struct vnt_td_info *alloc_td_info(void)
{
return kzalloc(sizeof(struct vnt_td_info), GFP_ATOMIC);
for (i = 0; i < priv->sOpts.rx_descs0;
i ++, curr += sizeof(struct vnt_rx_desc)) {
desc = &priv->aRD0Ring[i];
- desc->rd_info = alloc_rd_info();
+ desc->rd_info = kzalloc(sizeof(*desc->rd_info), GFP_ATOMIC);
if (!device_alloc_rx_buf(priv, desc))
dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");
for (i = 0; i < priv->sOpts.rx_descs1;
i ++, curr += sizeof(struct vnt_rx_desc)) {
desc = &priv->aRD1Ring[i];
- desc->rd_info = alloc_rd_info();
+ desc->rd_info = kzalloc(sizeof(*desc->rd_info), GFP_ATOMIC);
if (!device_alloc_rx_buf(priv, desc))
dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");