summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNishka Dasgupta <nishkadg.linux@gmail.com>2019-06-24 11:18:57 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-26 10:00:08 +0800
commit03c05c470fe53246ff95bf84385162bfdf800a29 (patch)
tree3a0e94c2d25d0ff23aa877bf3b6fb7f70e908667
parent6257450f891d3905e4e1db16fe9f9cdf49fc993d (diff)
staging: rtl8712: Replace r8712_free_cmd_priv()
Remove function r8712_free_cmd_priv as all it does is call _free_cmd_priv. Change type of new r8712_free_cmd_priv from static to non-static to match definition of original r8712_free_cmd_priv. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/rtl8712/rtl871x_cmd.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_cmd.c b/drivers/staging/rtl8712/rtl871x_cmd.c
index bf44f37e773d..269afe8cfd2a 100644
--- a/drivers/staging/rtl8712/rtl871x_cmd.c
+++ b/drivers/staging/rtl8712/rtl871x_cmd.c
@@ -92,7 +92,7 @@ static void _free_evt_priv(struct evt_priv *pevtpriv)
kfree(pevtpriv->evt_allocated_buf);
}
-static void _free_cmd_priv(struct cmd_priv *pcmdpriv)
+void r8712_free_cmd_priv(struct cmd_priv *pcmdpriv)
{
if (pcmdpriv) {
kfree(pcmdpriv->cmd_allocated_buf);
@@ -140,11 +140,6 @@ void r8712_free_evt_priv(struct evt_priv *pevtpriv)
_free_evt_priv(pevtpriv);
}
-void r8712_free_cmd_priv(struct cmd_priv *pcmdpriv)
-{
- _free_cmd_priv(pcmdpriv);
-}
-
void r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj)
{
if (pcmdpriv->padapter->eeprompriv.bautoload_fail_flag)