]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: rtl8188eu: Rename _rtw_dequeue_cmd() to rtw_dequeue_cmd()
authornavin patidar <navin.patidar@gmail.com>
Thu, 10 Jul 2014 03:41:59 +0000 (09:11 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 04:14:34 +0000 (21:14 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_cmd.c
drivers/staging/rtl8188eu/include/rtw_cmd.h

index c9c00b2b00caf4e62fdb49a544249fdb68720e7d..6cf29bfad3ae432903553e8066545379f615aef4 100644 (file)
@@ -110,7 +110,7 @@ exit:
        return _SUCCESS;
 }
 
-struct cmd_obj *_rtw_dequeue_cmd(struct __queue *queue)
+struct cmd_obj * rtw_dequeue_cmd(struct __queue *queue)
 {
        unsigned long irqL;
        struct cmd_obj *obj;
@@ -181,16 +181,6 @@ exit:
        return res;
 }
 
-struct cmd_obj *rtw_dequeue_cmd(struct cmd_priv *pcmdpriv)
-{
-       struct cmd_obj *cmd_obj;
-
-
-       cmd_obj = _rtw_dequeue_cmd(&pcmdpriv->cmd_queue);
-
-       return cmd_obj;
-}
-
 void rtw_free_cmd_obj(struct cmd_obj *pcmd)
 {
 
@@ -248,7 +238,7 @@ _next:
                        break;
                }
 
-               pcmd = rtw_dequeue_cmd(pcmdpriv);
+               pcmd = rtw_dequeue_cmd(&pcmdpriv->cmd_queue);
                if (!pcmd)
                        continue;
 
@@ -304,7 +294,7 @@ post_process:
 
        /*  free all cmd_obj resources */
        do {
-               pcmd = rtw_dequeue_cmd(pcmdpriv);
+               pcmd = rtw_dequeue_cmd(&pcmdpriv->cmd_queue);
                if (pcmd == NULL)
                        break;
 
index cc75c7dce1d0102e5625ec92d2fd9949f57a932f..b3529dac7aa58614506d864b37c90f96eb5c07f1 100644 (file)
@@ -70,7 +70,7 @@ do {\
 } while (0)
 
 u32 rtw_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
-struct cmd_obj *rtw_dequeue_cmd(struct cmd_priv *pcmdpriv);
+struct cmd_obj *rtw_dequeue_cmd(struct __queue *queue);
 void rtw_free_cmd_obj(struct cmd_obj *pcmd);
 
 int rtw_cmd_thread(void *context);