Commit 5bb48864 authored by Javier F. Arias's avatar Javier F. Arias Committed by Greg Kroah-Hartman

staging: rtl8723bs: Remove duplicate blank lines

Remove duplicate blank lines.
Signed-off-by: default avatarJavier F. Arias <jarias.linux@gmail.com>
Link: https://lore.kernel.org/r/cdc1899acadc436c2f0247ded9ec2a8b3423350e.1570672544.git.jarias.linux@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 26752254
...@@ -61,7 +61,6 @@ static u8 get_deviceid(u32 addr) ...@@ -61,7 +61,6 @@ static u8 get_deviceid(u32 addr)
u8 devide_id; u8 devide_id;
u16 pseudo_id; u16 pseudo_id;
pseudo_id = (u16)(addr >> 16); pseudo_id = (u16)(addr >> 16);
switch (pseudo_id) { switch (pseudo_id) {
case 0x1025: case 0x1025:
...@@ -72,7 +71,6 @@ static u8 get_deviceid(u32 addr) ...@@ -72,7 +71,6 @@ static u8 get_deviceid(u32 addr)
devide_id = WLAN_IOREG_DEVICE_ID; devide_id = WLAN_IOREG_DEVICE_ID;
break; break;
case 0x1031: case 0x1031:
devide_id = WLAN_TX_HIQ_DEVICE_ID; devide_id = WLAN_TX_HIQ_DEVICE_ID;
break; break;
...@@ -107,7 +105,6 @@ static u32 _cvrt2ftaddr(const u32 addr, u8 *pdevice_id, u16 *poffset) ...@@ -107,7 +105,6 @@ static u32 _cvrt2ftaddr(const u32 addr, u8 *pdevice_id, u16 *poffset)
u16 offset; u16 offset;
u32 ftaddr; u32 ftaddr;
device_id = get_deviceid(addr); device_id = get_deviceid(addr);
offset = 0; offset = 0;
...@@ -425,7 +422,6 @@ static u32 sdio_read_port( ...@@ -425,7 +422,6 @@ static u32 sdio_read_port(
struct hal_com_data *hal; struct hal_com_data *hal;
s32 err; s32 err;
adapter = intfhdl->padapter; adapter = intfhdl->padapter;
psdio = &adapter_to_dvobj(adapter)->intf_data; psdio = &adapter_to_dvobj(adapter)->intf_data;
hal = GET_HAL_DATA(adapter); hal = GET_HAL_DATA(adapter);
...@@ -530,7 +526,6 @@ static s32 _sdio_local_read( ...@@ -530,7 +526,6 @@ static s32 _sdio_local_read(
u8 *tmpbuf; u8 *tmpbuf;
u32 n; u32 n;
intfhdl = &adapter->iopriv.intf; intfhdl = &adapter->iopriv.intf;
HalSdioGetCmdAddr8723BSdio(adapter, SDIO_LOCAL_DEVICE_ID, addr, &addr); HalSdioGetCmdAddr8723BSdio(adapter, SDIO_LOCAL_DEVICE_ID, addr, &addr);
...@@ -703,7 +698,6 @@ static s32 ReadInterrupt8723BSdio(struct adapter *adapter, u32 *phisr) ...@@ -703,7 +698,6 @@ static s32 ReadInterrupt8723BSdio(struct adapter *adapter, u32 *phisr)
u32 hisr, himr; u32 hisr, himr;
u8 val8, hisr_len; u8 val8, hisr_len;
if (!phisr) if (!phisr)
return false; return false;
...@@ -741,7 +735,6 @@ void InitInterrupt8723BSdio(struct adapter *adapter) ...@@ -741,7 +735,6 @@ void InitInterrupt8723BSdio(struct adapter *adapter)
{ {
struct hal_com_data *haldata; struct hal_com_data *haldata;
haldata = GET_HAL_DATA(adapter); haldata = GET_HAL_DATA(adapter);
haldata->sdio_himr = (u32)( \ haldata->sdio_himr = (u32)( \
SDIO_HIMR_RX_REQUEST_MSK | SDIO_HIMR_RX_REQUEST_MSK |
...@@ -759,7 +752,6 @@ void InitSysInterrupt8723BSdio(struct adapter *adapter) ...@@ -759,7 +752,6 @@ void InitSysInterrupt8723BSdio(struct adapter *adapter)
{ {
struct hal_com_data *haldata; struct hal_com_data *haldata;
haldata = GET_HAL_DATA(adapter); haldata = GET_HAL_DATA(adapter);
haldata->SysIntrMask = ( \ haldata->SysIntrMask = ( \
...@@ -867,7 +859,6 @@ static struct recv_buf *sd_recv_rxfifo(struct adapter *adapter, u32 size) ...@@ -867,7 +859,6 @@ static struct recv_buf *sd_recv_rxfifo(struct adapter *adapter, u32 size)
struct recv_priv *recv_priv; struct recv_priv *recv_priv;
struct recv_buf *recvbuf; struct recv_buf *recvbuf;
/* Patch for some SDIO Host 4 bytes issue */ /* Patch for some SDIO Host 4 bytes issue */
/* ex. RK3188 */ /* ex. RK3188 */
readsize = RND4(size); readsize = RND4(size);
...@@ -909,7 +900,6 @@ static struct recv_buf *sd_recv_rxfifo(struct adapter *adapter, u32 size) ...@@ -909,7 +900,6 @@ static struct recv_buf *sd_recv_rxfifo(struct adapter *adapter, u32 size)
return NULL; return NULL;
} }
/* 3 4. init recvbuf */ /* 3 4. init recvbuf */
recvbuf->len = size; recvbuf->len = size;
recvbuf->phead = recvbuf->pskb->head; recvbuf->phead = recvbuf->pskb->head;
...@@ -943,7 +933,6 @@ void sd_int_dpc(struct adapter *adapter) ...@@ -943,7 +933,6 @@ void sd_int_dpc(struct adapter *adapter)
struct intf_hdl *intfhdl = &adapter->iopriv.intf; struct intf_hdl *intfhdl = &adapter->iopriv.intf;
struct pwrctrl_priv *pwrctl; struct pwrctrl_priv *pwrctl;
hal = GET_HAL_DATA(adapter); hal = GET_HAL_DATA(adapter);
dvobj = adapter_to_dvobj(adapter); dvobj = adapter_to_dvobj(adapter);
pwrctl = dvobj_to_pwrctl(dvobj); pwrctl = dvobj_to_pwrctl(dvobj);
...@@ -1019,7 +1008,6 @@ void sd_int_dpc(struct adapter *adapter) ...@@ -1019,7 +1008,6 @@ void sd_int_dpc(struct adapter *adapter)
if (hal->sdio_hisr & SDIO_HISR_RXERR) if (hal->sdio_hisr & SDIO_HISR_RXERR)
DBG_8192C("%s: Rx Error\n", __func__); DBG_8192C("%s: Rx Error\n", __func__);
if (hal->sdio_hisr & SDIO_HISR_RX_REQUEST) { if (hal->sdio_hisr & SDIO_HISR_RX_REQUEST) {
struct recv_buf *recvbuf; struct recv_buf *recvbuf;
int alloc_fail_time = 0; int alloc_fail_time = 0;
...@@ -1059,7 +1047,6 @@ void sd_int_hdl(struct adapter *adapter) ...@@ -1059,7 +1047,6 @@ void sd_int_hdl(struct adapter *adapter)
{ {
struct hal_com_data *hal; struct hal_com_data *hal;
if ( if (
(adapter->bDriverStopped) || (adapter->bSurpriseRemoved) (adapter->bDriverStopped) || (adapter->bSurpriseRemoved)
) )
...@@ -1103,7 +1090,6 @@ u8 HalQueryTxBufferStatus8723BSdio(struct adapter *adapter) ...@@ -1103,7 +1090,6 @@ u8 HalQueryTxBufferStatus8723BSdio(struct adapter *adapter)
struct hal_com_data *hal; struct hal_com_data *hal;
u32 numof_free_page; u32 numof_free_page;
hal = GET_HAL_DATA(adapter); hal = GET_HAL_DATA(adapter);
numof_free_page = SdioLocalCmd53Read4Byte(adapter, SDIO_REG_FREE_TXPG); numof_free_page = SdioLocalCmd53Read4Byte(adapter, SDIO_REG_FREE_TXPG);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment