From: Sarah Khan Date: Thu, 2 Oct 2014 19:41:35 +0000 (+0530) Subject: staging: rtl8712: Fixed else not required after return X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=bc394a39cbbbce3e9672303d5c5fc3d7c7b93f19;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8712/hal_init.c b/drivers/staging/rtl8712/hal_init.c index 81cd65496789..1d6ade05fa18 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 {