Skip to content

Commit

Permalink
staging: r8188eu: Fix smatch warning in core/rtw_ieee80211.
Browse files Browse the repository at this point in the history
Smatch shows the following warning:
drivers/staging/rtl8188eu/core/rtw_ieee80211.c:161 rtw_set_ie() info: ignoring unreachable code.

The cause is a module exit tracing statement after a return.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Larry Finger authored and Greg Kroah-Hartman committed Sep 17, 2013
1 parent 70f1a6d commit 8429bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/rtl8188eu/core/rtw_ieee80211.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,8 @@ _func_enter_;

*frlen = *frlen + (len + 2);

return pbuf + len + 2;
_func_exit_;
return pbuf + len + 2;
}

inline u8 *rtw_set_ie_ch_switch (u8 *buf, u32 *buf_len, u8 ch_switch_mode,
Expand Down

0 comments on commit 8429bf1

Please sign in to comment.