rtl8188eu: Fix smatch warning in core/rtw_wlan_util.c

Smatch shows the following:
  CHECK   /home/finger/rtl8188eu/core/rtw_wlan_util.c
/home/finger/rtl8188eu/core/rtw_wlan_util.c:1111 rtw_check_bcn_info() info: ignoring unreachable code.

This case had the _func_exit_ macro after a return.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
Larry Finger 2013-09-05 22:22:23 -05:00
parent 1d3cceea6a
commit 3be2cff4fe

View file

@ -1102,13 +1102,13 @@ int rtw_check_bcn_info(struct adapter *Adapter, u8 *pframe, u32 packet_len)
} }
rtw_mfree((u8 *)bssid, sizeof(struct wlan_bssid_ex)); rtw_mfree((u8 *)bssid, sizeof(struct wlan_bssid_ex));
_func_exit_;
return _SUCCESS; return _SUCCESS;
_mismatch: _mismatch:
rtw_mfree((u8 *)bssid, sizeof(struct wlan_bssid_ex)); rtw_mfree((u8 *)bssid, sizeof(struct wlan_bssid_ex));
return _FAIL;
_func_exit_; _func_exit_;
return _FAIL;
} }
void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta) void update_beacon_info(struct adapter *padapter, u8 *pframe, uint pkt_len, struct sta_info *psta)