From: navin patidar Date: Wed, 11 Jun 2014 17:21:29 +0000 (+0530) Subject: staging: rtl8188eu: Remove function _rtw_write_port() X-Git-Tag: cleanup-for-v3.18~125^2~1811 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05fa5ec2d8d12892f9945beebd3fdbfde7853b91;p=pandora-kernel.git staging: rtl8188eu: Remove function _rtw_write_port() _rtw_write_port() is a wrapper function, being used to call usb_write_port(). Call usb_write_port() directly and drop _rtw_write_port(). Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_io.c b/drivers/staging/rtl8188eu/core/rtw_io.c index 627a8521b658..a0a395c40eff 100644 --- a/drivers/staging/rtl8188eu/core/rtw_io.c +++ b/drivers/staging/rtl8188eu/core/rtw_io.c @@ -126,22 +126,6 @@ int _rtw_write32(struct adapter *adapter, u32 addr, u32 val) return RTW_STATUS_CODE(ret); } -u32 _rtw_write_port(struct adapter *adapter, u32 addr, u32 cnt, u8 *pmem) -{ - u32 (*_write_port)(struct adapter *pintfhdl, u32 addr, u32 cnt, u8 *pmem); - struct io_priv *pio_priv = &adapter->iopriv; - struct intf_hdl *pintfhdl = &(pio_priv->intf); - u32 ret = _SUCCESS; - - - _write_port = pintfhdl->io_ops._write_port; - - ret = _write_port(adapter, addr, cnt, pmem); - - - return ret; -} - void _rtw_write_port_cancel(struct adapter *adapter) { void (*_write_port_cancel)(struct adapter *pintfhdl); Reading git-diff-tree failed