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: Ajay Singh <ajay.kathat@microchip.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
7814fb6ca8
commit
6bccf8fc6c
@ -3459,9 +3459,7 @@ int wilc_init(struct net_device *dev, struct host_if_drv **hif_drv_handler)
|
||||
if (clients_count == 0) {
|
||||
init_completion(&hif_driver_comp);
|
||||
mutex_init(&hif_deinit_lock);
|
||||
}
|
||||
|
||||
if (clients_count == 0) {
|
||||
hif_workqueue = create_singlethread_workqueue("WILC_wq");
|
||||
if (!hif_workqueue) {
|
||||
netdev_err(vif->ndev, "Failed to create workqueue\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user