staging: r8188eu: Remove get_recvframe_len()
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 14 Feb 2014 22:54:10 +0000 (16:54 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Feb 2014 20:36:16 +0000 (12:36 -0800)
This simple routine is replaced by a simple access of the len member.

Reported-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_recv.c
drivers/staging/rtl8188eu/include/rtw_recv.h

index 3333ae90f8bfa822f5e62e611f228ace64bdf363..be0dfc169f1ba84a2428e2650ac1828f778f6d38 100644 (file)
@@ -743,7 +743,7 @@ static void count_rx_stats(struct adapter *padapter,
        struct rx_pkt_attrib    *pattrib = &prframe->attrib;
        struct recv_priv        *precvpriv = &padapter->recvpriv;
 
-       sz = get_recvframe_len(prframe);
+       sz = prframe->len;
        precvpriv->rx_bytes += sz;
 
        padapter->mlmepriv.LinkDetectInfo.NumRxOkInPeriod++;
index 21596398f1728e20c7aa8e6727c1d733fc66517c..1f4d98439df2527c38b29fe7d0e791c9b5bb8fa5 100644 (file)
@@ -406,11 +406,6 @@ static inline u8 *recvframe_pull_tail(struct recv_frame *precvframe, int sz)
        return precvframe->rx_tail;
 }
 
-static inline int get_recvframe_len(struct recv_frame *precvframe)
-{
-       return precvframe->len;
-}
-
 static inline s32 translate_percentage_to_dbm(u32 sig_stren_index)
 {
        s32     power; /*  in dBm. */