staging: vt6655: remove static inline alloc_rd_info.
Since this only contains one function and only used twice remove inline altogether. Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bed02d93a1
commit
e06cf9aba8
@ -306,11 +306,6 @@ struct vnt_private {
|
|||||||
struct ieee80211_low_level_stats low_stats;
|
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)
|
static inline struct vnt_td_info *alloc_td_info(void)
|
||||||
{
|
{
|
||||||
return kzalloc(sizeof(struct vnt_td_info), GFP_ATOMIC);
|
return kzalloc(sizeof(struct vnt_td_info), GFP_ATOMIC);
|
||||||
|
@ -551,7 +551,7 @@ static void device_init_rd0_ring(struct vnt_private *priv)
|
|||||||
for (i = 0; i < priv->sOpts.rx_descs0;
|
for (i = 0; i < priv->sOpts.rx_descs0;
|
||||||
i ++, curr += sizeof(struct vnt_rx_desc)) {
|
i ++, curr += sizeof(struct vnt_rx_desc)) {
|
||||||
desc = &priv->aRD0Ring[i];
|
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))
|
if (!device_alloc_rx_buf(priv, desc))
|
||||||
dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");
|
dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");
|
||||||
@ -575,7 +575,7 @@ static void device_init_rd1_ring(struct vnt_private *priv)
|
|||||||
for (i = 0; i < priv->sOpts.rx_descs1;
|
for (i = 0; i < priv->sOpts.rx_descs1;
|
||||||
i ++, curr += sizeof(struct vnt_rx_desc)) {
|
i ++, curr += sizeof(struct vnt_rx_desc)) {
|
||||||
desc = &priv->aRD1Ring[i];
|
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))
|
if (!device_alloc_rx_buf(priv, desc))
|
||||||
dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");
|
dev_err(&priv->pcid->dev, "can not alloc rx bufs\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user