]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging:r8188eu: remove rtw_endofpktfile function
authorIvan Safonov <insafonov@gmail.com>
Fri, 7 Oct 2016 18:01:21 +0000 (01:01 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:25:25 +0000 (10:25 +0200)
rtw_endofpktfile is one-line function.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_xmit.c
drivers/staging/rtl8188eu/include/xmit_osdep.h
drivers/staging/rtl8188eu/os_dep/xmit_linux.c

index 2b641f59c504d7f64e83b075b720177a0fc2ce19..ca65f0004e225b1e9924fdf5acf5615c3fa484d1 100644 (file)
@@ -1064,7 +1064,7 @@ s32 rtw_xmitframe_coalesce(struct adapter *padapter, struct sk_buff *pkt, struct
 
                frg_inx++;
 
-               if (bmcst || rtw_endofpktfile(&pktfile)) {
+               if (bmcst || pktfile.pkt_len == 0) {
                        pattrib->nr_frags = frg_inx;
 
                        pattrib->last_txcmdsz = pattrib->hdrlen + pattrib->iv_len + ((pattrib->nr_frags == 1) ? llc_sz : 0) +
index f96ca6af934d66580d76bd3bff3888e9279e2681..f9b3841cf7fd94772a585c4520e952afe2afe07b 100644 (file)
@@ -47,7 +47,6 @@ void rtw_os_xmit_resource_free(struct adapter *padapter,
 uint rtw_remainder_len(struct pkt_file *pfile);
 void _rtw_open_pktfile(struct sk_buff *pkt, struct pkt_file *pfile);
 uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen);
-int rtw_endofpktfile(struct pkt_file *pfile);
 
 void rtw_os_pkt_complete(struct adapter *padapter, struct sk_buff *pkt);
 void rtw_os_xmit_complete(struct adapter *padapter,
index 4b1b04e007151aa260b1f3c36f11e40f0f7e4e2f..019ded9c29045b0385c061cb5967da791c24ea78 100644 (file)
@@ -59,11 +59,6 @@ uint _rtw_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen)
        return len;
 }
 
-int rtw_endofpktfile(struct pkt_file *pfile)
-{
-       return pfile->pkt_len == 0;
-}
-
 int rtw_os_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *pxmitbuf, u32 alloc_sz)
 {
        int i;