staging: wilc1000: refactor wilc_netdev_init() to handle memory free in error path
authorAjay Singh <ajay.kathat@microchip.com>
Tue, 4 Sep 2018 06:39:41 +0000 (12:09 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 16:06:51 +0000 (18:06 +0200)
commita53b0b1392a1bf11d21bac3e13f543ee90923ed6
tree4a741f307bd99b30a586ae7a6ff68e6deb43cb75
parentb3ee105c332efc49199e138822923be3562619aa
staging: wilc1000: refactor wilc_netdev_init() to handle memory free in error path

Refactor the wilc_netdev_init() to cleanup the memory for error
scenario and remove unnecessary 'dev' pointer check.

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c