Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8723bs: provide spaces around unary operators

This patch fixes below issues reported by checkpatch

CHECK: spaces preferred around that '-' (ctx:VxV)
+ skb_copy_bits(pfile->pkt, pfile->buf_len-pfile->pkt_len,
rmem, len);

CHECK: spaces preferred around that '*' (ctx:VxV)
+#define WMM_XMIT_THRESHOLD (NR_XMITFRAME*2/5)
^

CHECK: spaces preferred around that '/' (ctx:VxV)
+#define WMM_XMIT_THRESHOLD (NR_XMITFRAME*2/5)
^
CHECK: spaces preferred around that '/' (ctx:VxV)
+ if (pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME/4)) {
^

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Hariprasad Kelam and committed by
Greg Kroah-Hartman
2af0ada2 045e1ee0

+3 -3
+3 -3
drivers/staging/rtl8723bs/os_dep/xmit_linux.c
··· 32 32 len = (rlen > len) ? len : rlen; 33 33 34 34 if (rmem) 35 - skb_copy_bits(pfile->pkt, pfile->buf_len-pfile->pkt_len, rmem, len); 35 + skb_copy_bits(pfile->pkt, pfile->buf_len - pfile->pkt_len, rmem, len); 36 36 37 37 pfile->cur_addr += len; 38 38 pfile->pkt_len -= len; ··· 65 65 kfree(pxmitbuf->pallocated_buf); 66 66 } 67 67 68 - #define WMM_XMIT_THRESHOLD (NR_XMITFRAME*2/5) 68 + #define WMM_XMIT_THRESHOLD (NR_XMITFRAME * 2 / 5) 69 69 70 70 void rtw_os_pkt_complete(struct adapter *padapter, _pkt *pkt) 71 71 { ··· 229 229 #endif 230 230 ) 231 231 && padapter->registrypriv.wifi_spec == 0) { 232 - if (pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME/4)) { 232 + if (pxmitpriv->free_xmitframe_cnt > (NR_XMITFRAME / 4)) { 233 233 res = rtw_mlcst2unicst(padapter, pkt); 234 234 if (res) 235 235 goto exit;