staging: rtl8188eu: rtw_io.c: Remove unused function _rtw_write_port_and_wait()
authornavin patidar <navin.patidar@gmail.com>
Wed, 11 Jun 2014 17:21:23 +0000 (22:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jun 2014 22:34:01 +0000 (15:34 -0700)
Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_io.c
drivers/staging/rtl8188eu/include/rtw_io.h

index ed6cd2bed895248387912508b03d9a37f4570fde..a0a31e63cc74861ed5f6f4cd9a1e63da0002b006 100644 (file)
@@ -187,23 +187,6 @@ u32 _rtw_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem)
        return ret;
 }
 
-u32 _rtw_write_port_and_wait(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem, int timeout_ms)
-{
-       int ret = _SUCCESS;
-       struct xmit_buf *pxmitbuf = (struct xmit_buf *)pmem;
-       struct submit_ctx sctx;
-
-       rtw_sctx_init(&sctx, timeout_ms);
-       pxmitbuf->sctx = &sctx;
-
-       ret = _rtw_write_port(adapter, addr, cnt, pmem);
-
-       if (ret == _SUCCESS)
-               ret = rtw_sctx_wait(&sctx);
-
-       return ret;
-}
-
 void _rtw_write_port_cancel(struct adapter *adapter)
 {
        void (*_write_port_cancel)(struct intf_hdl *pintfhdl);
index e47d8192230afbfe38f8e39a8029f7ac954ed4fc..4c8a8c14baa95fd3e6d4b1808c7d80627c4f0b00 100644 (file)
@@ -101,8 +101,6 @@ int _rtw_write32(struct adapter *adapter, u32 addr, u32 val);
 int _rtw_writeN(struct adapter *adapter, u32 addr, u32 length, u8 *pdata);
 
 u32 _rtw_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
-u32 _rtw_write_port_and_wait(struct adapter *adapter, u32 addr, u32 cnt,
-                            u8 *pmem, int timeout_ms);
 void _rtw_write_port_cancel(struct adapter *adapter);
 
 #define rtw_read8(adapter, addr) _rtw_read8((adapter), (addr))
@@ -122,8 +120,6 @@ void _rtw_write_port_cancel(struct adapter *adapter);
        _rtw_writeN((adapter), (addr), (length), (data))
 #define rtw_write_port(adapter, addr, cnt, mem)                                \
        _rtw_write_port((adapter), (addr), (cnt), (mem))
-#define rtw_write_port_and_wait(adapter, addr, cnt, mem, timeout_ms)   \
-       _rtw_write_port_and_wait((adapter), (addr), (cnt), (mem), (timeout_ms))
 #define rtw_write_port_cancel(adapter) _rtw_write_port_cancel((adapter))
 
 void rtw_write_scsi(struct adapter *adapter, u32 cnt, u8 *pmem);