staging: rtl8188eu: Remove unused function rtw_IOL_accquire_xmit_frame()
authornavin patidar <navin.patidar@gmail.com>
Sun, 10 Aug 2014 14:44:24 +0000 (20:14 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 16 Aug 2014 19:23:21 +0000 (12:23 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_iol.c
drivers/staging/rtl8188eu/include/rtw_iol.h

index 7796287be8f483722a82cec3cebf428713a9232d..5401f7a08a967468678cb8c5dd64470a6dc5fdcb 100644 (file)
 
 #include<rtw_iol.h>
 
-struct xmit_frame      *rtw_IOL_accquire_xmit_frame(struct adapter  *adapter)
-{
-       struct xmit_frame       *xmit_frame;
-       struct xmit_buf *xmitbuf;
-       struct pkt_attrib       *pattrib;
-       struct xmit_priv        *pxmitpriv = &(adapter->xmitpriv);
-
-       xmit_frame = rtw_alloc_xmitframe(pxmitpriv);
-       if (xmit_frame == NULL) {
-               DBG_88E("%s rtw_alloc_xmitframe return null\n", __func__);
-               goto exit;
-       }
-
-       xmitbuf = rtw_alloc_xmitbuf(pxmitpriv);
-       if (xmitbuf == NULL) {
-               DBG_88E("%s rtw_alloc_xmitbuf return null\n", __func__);
-               rtw_free_xmitframe(pxmitpriv, xmit_frame);
-               xmit_frame = NULL;
-               goto exit;
-       }
-
-       xmit_frame->frame_tag = MGNT_FRAMETAG;
-       xmit_frame->pxmitbuf = xmitbuf;
-       xmit_frame->buf_addr = xmitbuf->pbuf;
-       xmitbuf->priv_data = xmit_frame;
-
-       pattrib = &xmit_frame->attrib;
-       update_mgntframe_attrib(adapter, pattrib);
-       pattrib->qsel = 0x10;/* Beacon */
-       pattrib->subtype = WIFI_BEACON;
-       pattrib->pktlen = 0;
-       pattrib->last_txcmdsz = 0;
-exit:
-       return xmit_frame;
-}
-
 int rtw_IOL_append_cmds(struct xmit_frame *xmit_frame, u8 *IOL_cmds, u32 cmd_len)
 {
        struct pkt_attrib       *pattrib = &xmit_frame->attrib;
index 80bfd063dd8d8d75bb3647d5babd0265113f1de7..bac4d7f41868fe8876b45dc609e512327c63c25d 100644 (file)
@@ -46,7 +46,6 @@ enum ioreg_cmd {
        IOREG_CMD_END           = 0xFF,
 };
 
-struct xmit_frame *rtw_IOL_accquire_xmit_frame(struct adapter *adapter);
 int rtw_IOL_append_cmds(struct xmit_frame *xmit_frame, u8 *IOL_cmds,
                        u32 cmd_len);
 int rtw_IOL_append_LLT_cmd(struct xmit_frame *xmit_frame, u8 page_boundary);