Rename blnPending to bln_pending in r8712_cmd_thread() to address
checkpatch warning "Avoid Camelcase" and conform to the kernel coding
style.
Signed-off-by: Ayush Tiwari <[email protected]>
---
drivers/staging/rtl8712/rtl8712_cmd.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/staging/rtl8712/rtl8712_cmd.c b/drivers/staging/rtl8712/rtl8712_cmd.c
index bb7db96ed821..7e5a25b1c154 100644
--- a/drivers/staging/rtl8712/rtl8712_cmd.c
+++ b/drivers/staging/rtl8712/rtl8712_cmd.c
@@ -284,7 +284,7 @@ int r8712_cmd_thread(void *context)
pcmd = cmd_hdl_filter(padapter, pcmd);
if (pcmd) { /* if pcmd != NULL, cmd will be handled by f/w */
struct dvobj_priv *pdvobj = &padapter->dvobjpriv;
- u8 blnPending = 0;
+ u8 bln_pending = 0;
u16 cmdcode = pcmd->cmdcode;
pcmdpriv->cmd_issued_cnt++;
@@ -294,12 +294,12 @@ int r8712_cmd_thread(void *context)
0x0000ffff);
if (pdvobj->ishighspeed) {
if ((wr_sz % 512) == 0)
- blnPending = 1;
+ bln_pending = 1;
} else {
if ((wr_sz % 64) == 0)
- blnPending = 1;
+ bln_pending = 1;
}
- if (blnPending) { /* 32 bytes for TX Desc - 8 offset */
+ if (bln_pending) { /* 32 bytes for TX Desc - 8 offset */
pdesc->txdw0 |= cpu_to_le32(((TXDESC_SIZE +
OFFSET_SZ + 8) << OFFSET_SHT) &
0x00ff0000);
@@ -318,7 +318,7 @@ int r8712_cmd_thread(void *context)
(pcmdpriv->cmd_seq << 24));
pcmdbuf += 2; /* 8 bytes alignment */
memcpy((u8 *)pcmdbuf, pcmd->parmbuf, pcmd->cmdsz);
- if (blnPending)
+ if (bln_pending)
wr_sz += 8; /* Append 8 bytes */
r8712_write_mem(padapter, RTL8712_DMA_H2CCMD, wr_sz,
(u8 *)pdesc);
--
2.40.1