From: Larry Finger Date: Wed, 4 Sep 2013 20:56:08 +0000 (-0500) Subject: staging: r8188eu: Fix smatch warning in core/rtw_wlan_util.c X-Git-Tag: firefly_0821_release~176^2~5057^2~711 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=473803650dd7f37d1d520ec112dc12a8d57aaf22;p=firefly-linux-kernel-4.4.55.git staging: r8188eu: Fix smatch warning in core/rtw_wlan_util.c A misplaced _func_exit_ macro leads to the following smatch warning: drivers/staging/rtl8188eu/core/rtw_wlan_util.c:1105 rtw_check_bcn_info() info: ignoring unreachable code. Signed-off-by: Larry Finger Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c index e7fd751f4f01..42c46099cb79 100644 --- a/drivers/staging/rtl8188eu/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8188eu/core/rtw_wlan_util.c @@ -1096,13 +1096,13 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len) } kfree(bssid); + _func_exit_; return _SUCCESS; _mismatch: kfree(bssid); - return _FAIL; - _func_exit_; + return _FAIL; } void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta)