Skip to contentSkip to conversation

Staging: rtl8723au: core: Add spaces around that '='

PATCH In review Hatice ERTÜRK 2 participants 2 messages Feb 23, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: rtl8723au: core: Add spaces around that '='

This Error found with checkpatch.pl

ERROR: spaces required around that '='

---
 drivers/staging/rtl8723au/core/rtw_xmit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723au/core/rtw_xmit.c +2 -2
index 2c9fe07..bece9b3 100644
@@ -645,7 +645,7 @@ static int xmitframe_addmic(struct rtw_adapter *padapter,
 	struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
 	int curfragnum, length;
 	u8 *pframe, *payload, mic[8];
-	u8 priority[4]= {0x0, 0x0, 0x0, 0x0};
+	u8 priority[4] = {0x0, 0x0, 0x0, 0x0};
 	u8 hw_hdr_offset = 0;
 	int bmcst = is_multicast_ether_addr(pattrib->ra);
 
@@ -672,7 +672,7 @@ static int xmitframe_addmic(struct rtw_adapter *padapter,
 	if (pattrib->encrypt == WLAN_CIPHER_SUITE_TKIP) {
 		/* encode mic code */
 		if (stainfo) {
-			u8 null_key[16]={0x0, 0x0, 0x0, 0x0,
+			u8 null_key[16] = {0x0, 0x0, 0x0, 0x0,
 					 0x0, 0x0, 0x0, 0x0,
 					 0x0, 0x0, 0x0, 0x0,
 					 0x0, 0x0, 0x0, 0x0};
Signature · 1 line
1.9.1
#1 lore raw
Quoted 24 lines · Hatice ERTÜRK

This Error found with checkpatch.pl

ERROR: spaces required around that '='

---
 drivers/staging/rtl8723au/core/rtw_xmit.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8723au/core/rtw_xmit.c +1 -1
index 2c9fe07..bece9b3 100644
@@ -645,7 +645,7 @@ static int xmitframe_addmic(struct rtw_adapter *padapter,
 	struct xmit_priv *pxmitpriv = &padapter->xmitpriv;
 	int curfragnum, length;
 	u8 *pframe, *payload, mic[8];
-	u8 priority[4]= {0x0, 0x0, 0x0, 0x0};
+	u8 priority[4] = {0x0, 0x0, 0x0, 0x0};
 	u8 hw_hdr_offset = 0;
 	int bmcst = is_multicast_ether_addr(pattrib->ra);
 

drivers/staging/rtl8723au/core/rtw_xmit.c static int xmitframe_addmic(struct rtw_adapter *padapter, · line 678

Quoted 8 lines
drivers/staging/rtl8723au/core/rtw_xmit.c +1 -1
@@ -672,7 +672,7 @@ static int xmitframe_addmic(struct rtw_adapter *padapter,
 	if (pattrib->encrypt == WLAN_CIPHER_SUITE_TKIP) {
 		/* encode mic code */
 		if (stainfo) {
-			u8 null_key[16]={0x0, 0x0, 0x0, 0x0,
+			u8 null_key[16] = {0x0, 0x0, 0x0, 0x0,
 					 0x0, 0x0, 0x0, 0x0,
 					 0x0, 0x0, 0x0, 0x0,
 					 0x0, 0x0, 0x0, 0x0};

In the second portion, you should look at aligning the follow-on lines, however an even better solution would be to memset() null_key.

Please also try and put a personalized commit message rather than just the checkpatch words.

Cheers,
Jes