Add space around operators for improving the code
readability.
Reported by checkpatch.pl

git diff -w shows no difference.
diff of the .o files before and after the changes shows no difference.

Signed-off-by: Shreeya Patel <shreeya.patel23...@gmail.com>
---

shreeya@Shreeya-Patel:~git/kernels/staging$ git diff -w 
drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
shreeya@Shreeya-Patel:~git/kernels/staging$

shreeya@Shreeya-Patel:~git/kernels/staging/drivers/staging/rtl8188eu/hal$ diff 
rtl8188eu_xmit_old.o rtl8188eu_xmit.o
shreeya@Shreeya-Patel:~git/kernels/staging/drivers/staging/rtl8188eu/hal$

 .../staging/rtl8188eu/hal/rtl8188eu_xmit.c    | 32 +++++++++----------
 1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c 
b/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
index 2808f2b119bf..7d315bd438d4 100644
--- a/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
+++ b/drivers/staging/rtl8188eu/hal/rtl8188eu_xmit.c
@@ -58,12 +58,12 @@ void rtl8188e_fill_fake_txdesc(struct adapter *adapt, u8 
*desc, u32 BufferLen, u
        /* offset 0 */
        ptxdesc->txdw0 |= cpu_to_le32(OWN | FSG | LSG); /* own, bFirstSeg, 
bLastSeg; */
 
-       ptxdesc->txdw0 |= 
cpu_to_le32(((TXDESC_SIZE+OFFSET_SZ)<<OFFSET_SHT)&0x00ff0000); /* 32 bytes for 
TX Desc */
+       ptxdesc->txdw0 |= cpu_to_le32(((TXDESC_SIZE + OFFSET_SZ) << OFFSET_SHT) 
& 0x00ff0000); /* 32 bytes for TX Desc */
 
-       ptxdesc->txdw0 |= cpu_to_le32(BufferLen&0x0000ffff); /*  Buffer size + 
command header */
+       ptxdesc->txdw0 |= cpu_to_le32(BufferLen & 0x0000ffff); /*  Buffer size 
+ command header */
 
        /* offset 4 */
-       ptxdesc->txdw1 |= cpu_to_le32((QSLT_MGNT<<QSEL_SHT)&0x00001f00); /*  
Fixed queue of Mgnt queue */
+       ptxdesc->txdw1 |= cpu_to_le32((QSLT_MGNT << QSEL_SHT) & 0x00001f00); /* 
 Fixed queue of Mgnt queue */
 
        /* Set NAVUSEHDR to prevent Ps-poll AId filed to be changed to error 
vlaue by Hw. */
        if (ispspoll) {
@@ -91,16 +91,16 @@ static void fill_txdesc_sectype(struct pkt_attrib *pattrib, 
struct tx_desc *ptxd
                /* SEC_TYPE : 0:NO_ENC,1:WEP40/TKIP,2:WAPI,3:AES */
                case _WEP40_:
                case _WEP104_:
-                       ptxdesc->txdw1 |= 
cpu_to_le32((0x01<<SEC_TYPE_SHT)&0x00c00000);
+                       ptxdesc->txdw1 |= cpu_to_le32((0x01 << SEC_TYPE_SHT) & 
0x00c00000);
                        ptxdesc->txdw2 |= cpu_to_le32(0x7 << AMPDU_DENSITY_SHT);
                        break;
                case _TKIP_:
                case _TKIP_WTMIC_:
-                       ptxdesc->txdw1 |= 
cpu_to_le32((0x01<<SEC_TYPE_SHT)&0x00c00000);
+                       ptxdesc->txdw1 |= cpu_to_le32((0x01 << SEC_TYPE_SHT) & 
0x00c00000);
                        ptxdesc->txdw2 |= cpu_to_le32(0x7 << AMPDU_DENSITY_SHT);
                        break;
                case _AES_:
-                       ptxdesc->txdw1 |= 
cpu_to_le32((0x03<<SEC_TYPE_SHT)&0x00c00000);
+                       ptxdesc->txdw1 |= cpu_to_le32((0x03 << SEC_TYPE_SHT) & 
0x00c00000);
                        ptxdesc->txdw2 |= cpu_to_le32(0x7 << AMPDU_DENSITY_SHT);
                        break;
                case _NO_PRIVACY_:
@@ -127,7 +127,7 @@ static void fill_txdesc_vcs(struct pkt_attrib *pattrib, 
__le32 *pdw)
                *pdw |= cpu_to_le32(HW_RTS_EN);
                /*  Set RTS BW */
                if (pattrib->ht_en) {
-                       *pdw |= (pattrib->bwmode&HT_CHANNEL_WIDTH_40) ? 
cpu_to_le32(BIT(27)) : 0;
+                       *pdw |= (pattrib->bwmode & HT_CHANNEL_WIDTH_40) ?       
cpu_to_le32(BIT(27)) : 0;
 
                        if (pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
                                *pdw |= cpu_to_le32((0x01 << 28) & 0x30000000);
@@ -144,7 +144,7 @@ static void fill_txdesc_vcs(struct pkt_attrib *pattrib, 
__le32 *pdw)
 static void fill_txdesc_phy(struct pkt_attrib *pattrib, __le32 *pdw)
 {
        if (pattrib->ht_en) {
-               *pdw |= (pattrib->bwmode&HT_CHANNEL_WIDTH_40) ? 
cpu_to_le32(BIT(25)) : 0;
+               *pdw |= (pattrib->bwmode & HT_CHANNEL_WIDTH_40) ?       
cpu_to_le32(BIT(25)) : 0;
 
                if (pattrib->ch_offset == HAL_PRIME_CHNL_OFFSET_LOWER)
                        *pdw |= cpu_to_le32((0x01 << DATA_SC_SHT) & 0x003f0000);
@@ -171,7 +171,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 
*pmem, s32 sz, u8 bag
 
        if (adapt->registrypriv.mp_mode == 0) {
                if ((!bagg_pkt) && (urb_zero_packet_chk(adapt, sz) == 0)) {
-                       ptxdesc = (struct tx_desc *)(pmem+PACKET_OFFSET_SZ);
+                       ptxdesc = (struct tx_desc *)(pmem + PACKET_OFFSET_SZ);
                        pull = 1;
                }
        }
@@ -263,11 +263,11 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, 
u8 *pmem, s32 sz, u8 bag
                                ptxdesc->txdw4 |= cpu_to_le32(BIT(24));/*  
DATA_SHORT */
                        ptxdesc->txdw5 |= 
cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
                }
-       } else if ((pxmitframe->frame_tag&0x0f) == MGNT_FRAMETAG) {
+       } else if ((pxmitframe->frame_tag & 0x0f) == MGNT_FRAMETAG) {
                /* offset 4 */
                ptxdesc->txdw1 |= cpu_to_le32(pattrib->mac_id & 0x3f);
 
-               qsel = (uint)(pattrib->qsel&0x0000001f);
+               qsel = (uint)(pattrib->qsel & 0x0000001f);
                ptxdesc->txdw1 |= cpu_to_le32((qsel << QSEL_SHT) & 0x00001f00);
 
                ptxdesc->txdw1 |= cpu_to_le32((pattrib->raid << RATE_ID_SHT) & 
0x000f0000);
@@ -278,7 +278,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 
*pmem, s32 sz, u8 bag
                        ptxdesc->txdw2 |= cpu_to_le32(BIT(19));
 
                /* offset 12 */
-               ptxdesc->txdw3 |= 
cpu_to_le32((pattrib->seqnum<<SEQ_SHT)&0x0FFF0000);
+               ptxdesc->txdw3 |= cpu_to_le32((pattrib->seqnum << SEQ_SHT) & 
0x0FFF0000);
 
                /* offset 20 */
                ptxdesc->txdw5 |= cpu_to_le32(RTY_LMT_EN);/* retry limit enable 
*/
@@ -288,7 +288,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 
*pmem, s32 sz, u8 bag
                        ptxdesc->txdw5 |= cpu_to_le32(0x00300000);/* retry 
limit = 12 */
 
                ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
-       } else if ((pxmitframe->frame_tag&0x0f) == TXAGG_FRAMETAG) {
+       } else if ((pxmitframe->frame_tag & 0x0f) == TXAGG_FRAMETAG) {
                DBG_88E("pxmitframe->frame_tag == TXAGG_FRAMETAG\n");
        } else {
                DBG_88E("pxmitframe->frame_tag = %d\n", pxmitframe->frame_tag);
@@ -301,7 +301,7 @@ static s32 update_txdesc(struct xmit_frame *pxmitframe, u8 
*pmem, s32 sz, u8 bag
                /* offset 8 */
 
                /* offset 12 */
-               ptxdesc->txdw3 |= 
cpu_to_le32((pattrib->seqnum<<SEQ_SHT)&0x0fff0000);
+               ptxdesc->txdw3 |= cpu_to_le32((pattrib->seqnum << SEQ_SHT) & 
0x0fff0000);
 
                /* offset 20 */
                ptxdesc->txdw5 |= cpu_to_le32(MRateToHwRate(pmlmeext->tx_rate));
@@ -466,7 +466,7 @@ bool rtl8188eu_xmitframe_complete(struct adapter *adapt,
 
        /* 3 2. aggregate same priority and same DA(AP or STA) frames */
        pfirstframe = pxmitframe;
-       len = xmitframe_need_length(pfirstframe) + TXDESC_SIZE + 
(pfirstframe->pkt_offset*PACKET_OFFSET_SZ);
+       len = xmitframe_need_length(pfirstframe) + TXDESC_SIZE + 
(pfirstframe->pkt_offset * PACKET_OFFSET_SZ);
        pbuf_tail = len;
        pbuf = round_up(pbuf_tail, 8);
 
@@ -517,7 +517,7 @@ bool rtl8188eu_xmitframe_complete(struct adapter *adapt,
                pxmitframe->agg_num = 0; /*  not first frame of aggregation */
                pxmitframe->pkt_offset = 0; /*  not first frame of aggregation, 
no need to reserve offset */
 
-               len = xmitframe_need_length(pxmitframe) + TXDESC_SIZE + 
(pxmitframe->pkt_offset*PACKET_OFFSET_SZ);
+               len = xmitframe_need_length(pxmitframe) + TXDESC_SIZE + 
(pxmitframe->pkt_offset * PACKET_OFFSET_SZ);
 
                if (round_up(pbuf + len, 8) > MAX_XMITBUF_SZ) {
                        pxmitframe->agg_num = 1;
-- 
2.17.1

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to