staging: rtl8723bs: hal: spaces preferred around unary operator
authorHariprasad Kelam <hariprasad.kelam@gmail.com>
Sat, 15 Jun 2019 04:36:57 +0000 (10:06 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jun 2019 06:59:41 +0000 (08:59 +0200)
This patch fixes below issues reported by checkpatch

CHECK: spaces preferred around that '-' (ctx:VxV)
CHECK: spaces preferred around that '/' (ctx:VxV)

Signed-off-by: Hariprasad Kelam <hariprasad.kelam@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c

index 215335c..b44e902 100644 (file)
@@ -284,7 +284,7 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv
                                txlen = txdesc_size + rtw_wlan_pkt_size(pxmitframe);
                                if(     !pxmitbuf ||
                                        ((_RND(pxmitbuf->len, 8) + txlen) > max_xmit_len) ||
-                                       (k >= (rtw_hal_sdio_max_txoqt_free_space(padapter)-1))
+                                       (k >= (rtw_hal_sdio_max_txoqt_free_space(padapter) - 1))
                                ) {
                                        if (pxmitbuf) {
                                                /* pxmitbuf->priv_data will be NULL, and will crash here */
@@ -355,8 +355,8 @@ static s32 xmit_xmitframes(struct adapter *padapter, struct xmit_priv *pxmitpriv
                                        rtw_count_tx_stats(padapter, pxmitframe, pxmitframe->attrib.last_txcmdsz);
 
                                        txlen = txdesc_size + pxmitframe->attrib.last_txcmdsz;
-                                       pxmitframe->pg_num = (txlen + 127)/128;
-                                       pxmitbuf->pg_num += (txlen + 127)/128;
+                                       pxmitframe->pg_num = (txlen + 127) / 128;
+                                       pxmitbuf->pg_num += (txlen + 127) / 128;
                                    /* if (k != 1) */
                                        /*      ((struct xmit_frame*)pxmitbuf->priv_data)->pg_num += pxmitframe->pg_num; */
                                        pxmitbuf->ptail += _RND(txlen, 8); /*  round to 8 bytes alignment */
@@ -522,7 +522,7 @@ s32 rtl8723bs_mgnt_xmit(
        rtl8723b_update_txdesc(pmgntframe, pmgntframe->buf_addr);
 
        pxmitbuf->len = txdesc_size + pattrib->last_txcmdsz;
-       pxmitbuf->pg_num = (pxmitbuf->len + 127)/128; /*  128 is tx page size */
+       pxmitbuf->pg_num = (pxmitbuf->len + 127) / 128; /*  128 is tx page size */
        pxmitbuf->ptail = pmgntframe->buf_addr + pxmitbuf->len;
        pxmitbuf->ff_hwaddr = rtw_get_ff_hwaddr(pmgntframe);