OSDN Git Service

staging: wilc1000: move the allocation of cmd out of wilc_enqueue_cmd()
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 26 Jun 2018 06:07:05 +0000 (11:37 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:55:51 +0000 (21:55 +0900)
commitff52a57a7a4237ad5e089d32c7d621a68f4a7610
tree6b9bb36314847f2f78dd3cf3b5412ac35630f593
parent02f08321d0bbf64ffcd709ec664bac0f0ec6b3d8
staging: wilc1000: move the allocation of cmd out of wilc_enqueue_cmd()

Instead of allocating the host_if_cmd in wilc_enqueue_cmd() now moved
the allocation of cmd in the caller. Added the NULL check for
'hif_workqueue' before posting the work queue in wilc_enqueue_cmd().

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Reviewed-by: Claudiu Beznea <claudiu.beznea@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c