staging: wilc1000: refactor wilc_wlan_handle_isr_ext to avoid goto statement
authorAjay Singh <ajay.kathat@microchip.com>
Wed, 1 Aug 2018 05:03:41 +0000 (10:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 2 Aug 2018 07:41:37 +0000 (09:41 +0200)
commit7878abdec92040e8c20ff3f1b8f8ab35d8dafc5b
tree91f0790c2938f5f36ce97f6e8bb3d842a1552da5
parent49328076f6f93bae8376dfb7a19143f613da6f52
staging: wilc1000: refactor wilc_wlan_handle_isr_ext to avoid goto statement

Refactor wilc_wlan_handle_isr_ext() to avoid the use of the goto label.
Also avoid the unnecessary NULL check for 'wilc->rx_buffer' and
calling wilc_wlan_handle_rxq() only after wilc_wlan_rxq_add() call.
The link [1] contains details for discussion related to this changes.

[1]. https://patchwork.kernel.org/patch/10533601/

Signed-off-by: Ajay Singh <ajay.kathat@microchip.com>
Suggested-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wlan.c