staging: rtl8188eu: Remove unnecessary pointer cast
authorJanani Ravichandran <janani.rvchndrn@gmail.com>
Tue, 9 Feb 2016 18:07:29 +0000 (13:07 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Feb 2016 04:03:56 +0000 (20:03 -0800)
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>
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c

index e6020265d6de4e717fb4fc2870ee1fc3dd0cdca5..96e5c6dc5b7c5169e6c622199b736d97bb96e8f6 100644 (file)
@@ -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;