staging: rtl8712: r8712_enqueue_cmd_ex(): Change return type
Change return type of function r8712_enqueue_cmd_ex from u8 to void as its return value is never stored, checked or otherwise used. Modify return statements accordingly. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
0236f87b80
commit
b43f6a60e2
|
@ -163,21 +163,20 @@ void r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj)
|
|||
complete(&pcmdpriv->cmd_queue_comp);
|
||||
}
|
||||
|
||||
u32 r8712_enqueue_cmd_ex(struct cmd_priv *pcmdpriv, struct cmd_obj *obj)
|
||||
void r8712_enqueue_cmd_ex(struct cmd_priv *pcmdpriv, struct cmd_obj *obj)
|
||||
{
|
||||
unsigned long irqL;
|
||||
struct __queue *queue;
|
||||
|
||||
if (!obj)
|
||||
return _SUCCESS;
|
||||
return;
|
||||
if (pcmdpriv->padapter->eeprompriv.bautoload_fail_flag)
|
||||
return _FAIL;
|
||||
return;
|
||||
queue = &pcmdpriv->cmd_queue;
|
||||
spin_lock_irqsave(&queue->lock, irqL);
|
||||
list_add_tail(&obj->list, &queue->queue);
|
||||
spin_unlock_irqrestore(&queue->lock, irqL);
|
||||
complete(&pcmdpriv->cmd_queue_comp);
|
||||
return _SUCCESS;
|
||||
}
|
||||
|
||||
struct cmd_obj *r8712_dequeue_cmd(struct __queue *queue)
|
||||
|
|
|
@ -80,7 +80,7 @@ do {\
|
|||
} while (0)
|
||||
|
||||
void r8712_enqueue_cmd(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
|
||||
u32 r8712_enqueue_cmd_ex(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
|
||||
void r8712_enqueue_cmd_ex(struct cmd_priv *pcmdpriv, struct cmd_obj *obj);
|
||||
struct cmd_obj *r8712_dequeue_cmd(struct __queue *queue);
|
||||
void r8712_free_cmd_obj(struct cmd_obj *pcmd);
|
||||
int r8712_cmd_thread(void *context);
|
||||
|
|
Loading…
Reference in New Issue