mirror of
https://github.com/torvalds/linux.git
synced 2024-12-31 23:31:29 +00:00
staging: rtl8723bs: Fix checkpatch space errors in os_dep/sdio_ops_linux.c
Detected the follow errors by checkpatch.pl -f ERROR: spaces required around that '<' ERROR: space required after that ';' Signed-off-by: Bingyu Zhou <rain.by.zhou@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
777e923c2d
commit
1d283a6418
@ -272,7 +272,7 @@ u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err)
|
||||
DBG_871X(KERN_ERR "%s: (%d) addr = 0x%05x, val = 0x%x\n", __func__, *err, addr, v);
|
||||
|
||||
*err = 0;
|
||||
for (i = 0; i<SD_IO_TRY_CNT; i++)
|
||||
for (i = 0; i < SD_IO_TRY_CNT; i++)
|
||||
{
|
||||
if (claim_needed) sdio_claim_host(func);
|
||||
v = sdio_readl(func, addr, err);
|
||||
@ -294,7 +294,7 @@ u32 sd_read32(struct intf_hdl *pintfhdl, u32 addr, s32 *err)
|
||||
}
|
||||
}
|
||||
|
||||
if (i ==SD_IO_TRY_CNT)
|
||||
if (i == SD_IO_TRY_CNT)
|
||||
DBG_871X(KERN_ERR "%s: FAIL!(%d) addr = 0x%05x, val = 0x%x, try_cnt =%d\n", __func__, *err, addr, v, i);
|
||||
else
|
||||
DBG_871X(KERN_ERR "%s: (%d) addr = 0x%05x, val = 0x%x, try_cnt =%d\n", __func__, *err, addr, v, i);
|
||||
@ -317,7 +317,7 @@ void sd_write8(struct intf_hdl *pintfhdl, u32 addr, u8 v, s32 *err)
|
||||
|
||||
if (padapter->bSurpriseRemoved) {
|
||||
/* DBG_871X(" %s (padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n", __func__); */
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
func = psdio->func;
|
||||
@ -346,7 +346,7 @@ void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err)
|
||||
|
||||
if (padapter->bSurpriseRemoved) {
|
||||
/* DBG_871X(" %s (padapter->bSurpriseRemoved ||adapter->pwrctrlpriv.pnp_bstop_trx)!!!\n", __func__); */
|
||||
return ;
|
||||
return;
|
||||
}
|
||||
|
||||
func = psdio->func;
|
||||
@ -365,7 +365,7 @@ void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err)
|
||||
DBG_871X(KERN_ERR "%s: (%d) addr = 0x%05x val = 0x%08x\n", __func__, *err, addr, v);
|
||||
|
||||
*err = 0;
|
||||
for (i = 0; i<SD_IO_TRY_CNT; i++)
|
||||
for (i = 0; i < SD_IO_TRY_CNT; i++)
|
||||
{
|
||||
if (claim_needed) sdio_claim_host(func);
|
||||
sdio_writel(func, v, addr, err);
|
||||
@ -386,7 +386,7 @@ void sd_write32(struct intf_hdl *pintfhdl, u32 addr, u32 v, s32 *err)
|
||||
}
|
||||
}
|
||||
|
||||
if (i ==SD_IO_TRY_CNT)
|
||||
if (i == SD_IO_TRY_CNT)
|
||||
DBG_871X(KERN_ERR "%s: FAIL!(%d) addr = 0x%05x val = 0x%08x, try_cnt =%d\n", __func__, *err, addr, v, i);
|
||||
else
|
||||
DBG_871X(KERN_ERR "%s: (%d) addr = 0x%05x val = 0x%08x, try_cnt =%d\n", __func__, *err, addr, v, i);
|
||||
@ -428,7 +428,7 @@ s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
|
||||
|
||||
func = psdio->func;
|
||||
|
||||
if (unlikely((cnt == 1) || (cnt ==2)))
|
||||
if (unlikely((cnt == 1) || (cnt == 2)))
|
||||
{
|
||||
int i;
|
||||
u8 *pbuf = (u8 *)pdata;
|
||||
@ -465,7 +465,7 @@ s32 _sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
|
||||
*0 Success
|
||||
*others Fail
|
||||
*/
|
||||
s32 sd_read(struct intf_hdl * pintfhdl, u32 addr, u32 cnt, void *pdata)
|
||||
s32 sd_read(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
|
||||
{
|
||||
struct adapter *padapter;
|
||||
struct dvobj_priv *psdiodev;
|
||||
@ -517,7 +517,7 @@ s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
|
||||
|
||||
struct sdio_func *func;
|
||||
u32 size;
|
||||
s32 err =-EPERM;
|
||||
s32 err = -EPERM;
|
||||
|
||||
padapter = pintfhdl->padapter;
|
||||
psdiodev = pintfhdl->pintf_dev;
|
||||
@ -529,9 +529,9 @@ s32 _sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
|
||||
}
|
||||
|
||||
func = psdio->func;
|
||||
/* size = sdio_align_size(func, cnt); */
|
||||
/* size = sdio_align_size(func, cnt); */
|
||||
|
||||
if (unlikely((cnt == 1) || (cnt ==2)))
|
||||
if (unlikely((cnt == 1) || (cnt == 2)))
|
||||
{
|
||||
int i;
|
||||
u8 *pbuf = (u8 *)pdata;
|
||||
@ -576,7 +576,7 @@ s32 sd_write(struct intf_hdl *pintfhdl, u32 addr, u32 cnt, void *pdata)
|
||||
PSDIO_DATA psdio;
|
||||
struct sdio_func *func;
|
||||
bool claim_needed;
|
||||
s32 err =-EPERM;
|
||||
s32 err = -EPERM;
|
||||
|
||||
padapter = pintfhdl->padapter;
|
||||
psdiodev = pintfhdl->pintf_dev;
|
||||
|
Loading…
Reference in New Issue
Block a user