Commit dc0f139b authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8712: Replace r8712_free_evt_priv()

Remove function r8712_free_evt_priv as all it does is call
_free_evt_priv.
Rename _free_evt_priv to r8712_free_evt_priv to maintain compatibility
with call sites.
Change type of new r8712_free_evt_priv from static to non-static to
match old definition.
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 03c05c47
...@@ -87,7 +87,7 @@ int r8712_init_evt_priv(struct evt_priv *pevtpriv) ...@@ -87,7 +87,7 @@ int r8712_init_evt_priv(struct evt_priv *pevtpriv)
return 0; return 0;
} }
static void _free_evt_priv(struct evt_priv *pevtpriv) void r8712_free_evt_priv(struct evt_priv *pevtpriv)
{ {
kfree(pevtpriv->evt_allocated_buf); kfree(pevtpriv->evt_allocated_buf);
} }
...@@ -135,11 +135,6 @@ static struct cmd_obj *_dequeue_cmd(struct __queue *queue) ...@@ -135,11 +135,6 @@ static struct cmd_obj *_dequeue_cmd(struct __queue *queue)
return obj; return obj;
} }
void r8712_free_evt_priv(struct evt_priv *pevtpriv)
{
_free_evt_priv(pevtpriv);
}
void r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj) void r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj)
{ {
if (pcmdpriv->padapter->eeprompriv.bautoload_fail_flag) if (pcmdpriv->padapter->eeprompriv.bautoload_fail_flag)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment