diff options
author | Sarah Khan <sarahjmi07@gmail.com> | 2014-10-03 01:11:35 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-02 11:59:40 -0700 |
commit | bc394a39cbbbce3e9672303d5c5fc3d7c7b93f19 (patch) | |
tree | 8cbd5135c4c915111defa88bb57c2dcbd5bc8329 /drivers | |
parent | 4eaef85670f347be2bf7431227fe2630598884a8 (diff) | |
download | op-kernel-dev-bc394a39cbbbce3e9672303d5c5fc3d7c7b93f19.zip op-kernel-dev-bc394a39cbbbce3e9672303d5c5fc3d7c7b93f19.tar.gz |
staging: rtl8712: Fixed else not required after return
WARNING: Else generally not required after return
checkpatch.pl warning in hal_init.c
Fixed by removing else
Signed-off-by: Sarah Khan <sarahjmi07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/rtl8712/hal_init.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c index 81cd654..1d6ade0 100644 --- a/drivers/staging/rtl8712/hal_init.c +++ b/drivers/staging/rtl8712/hal_init.c @@ -389,10 +389,8 @@ uint rtl871x_hal_init(struct _adapter *padapter) padapter->hw_init_completed = false; if (padapter->halpriv.hal_bus_init == NULL) return _FAIL; - else { - if (padapter->halpriv.hal_bus_init(padapter) != _SUCCESS) - return _FAIL; - } + if (padapter->halpriv.hal_bus_init(padapter) != _SUCCESS) + return _FAIL; if (rtl8712_hal_init(padapter) == _SUCCESS) padapter->hw_init_completed = true; else { |