summaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8188eu
diff options
context:
space:
mode:
authorJanani Ravichandran2016-02-09 19:07:29 +0100
committerGreg Kroah-Hartman2016-02-12 05:03:56 +0100
commit139737983db450b956930134eee755d36782c986 (patch)
tree1a2dfaff3ad6329a50b35f71695d9dd28fc59feb /drivers/staging/rtl8188eu
parentstaging: rtl8723au: Use ARRAY_SIZE macro for sizes of arrays (diff)
downloadkernel-qcow2-linux-139737983db450b956930134eee755d36782c986.tar.gz
kernel-qcow2-linux-139737983db450b956930134eee755d36782c986.tar.xz
kernel-qcow2-linux-139737983db450b956930134eee755d36782c986.zip
staging: rtl8188eu: Remove unnecessary pointer cast
Remove unnecessary pointer cast. Issue found using the following Coccinelle semantic patch. @@ type T; T e; identifier x; @@ * T x = (T)e; Signed-off-by: Janani Ravichandran <janani.rvchndrn@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu')
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_mlme_ext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
index e6020265d6de..96e5c6dc5b7c 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme_ext.c
@@ -3652,7 +3652,7 @@ static unsigned int on_action_spct(struct adapter *padapter,
struct sta_info *psta = NULL;
struct sta_priv *pstapriv = &padapter->stapriv;
u8 *pframe = precv_frame->rx_data;
- u8 *frame_body = (u8 *)(pframe + sizeof(struct rtw_ieee80211_hdr_3addr));
+ u8 *frame_body = pframe + sizeof(struct rtw_ieee80211_hdr_3addr);
u8 category;
u8 action;