Commit 6bccf8fc authored by Ajay Singh's avatar Ajay Singh Committed by Greg Kroah-Hartman

staging: wilc1000: avoid use of extra 'if' condition in wilc_init()

Cleanup patch to avoid the avoid extra 'if' condition and clubbed the
same condition in single 'if' block.
Signed-off-by: default avatarAjay Singh <ajay.kathat@microchip.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 7814fb6c
...@@ -3459,9 +3459,7 @@ int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler) ...@@ -3459,9 +3459,7 @@ int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
if (clients_count == 0) { if (clients_count == 0) {
init_completion(&hif_driver_comp); init_completion(&hif_driver_comp);
mutex_init(&hif_deinit_lock); mutex_init(&hif_deinit_lock);
}
if (clients_count == 0) {
hif_workqueue = create_singlethread_workqueue("WILC_wq"); hif_workqueue = create_singlethread_workqueue("WILC_wq");
if (!hif_workqueue) { if (!hif_workqueue) {
netdev_err(vif->ndev, "Failed to create workqueue\n"); netdev_err(vif->ndev, "Failed to create workqueue\n");
......
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