Skip to contentSkip to conversation

drivers: staging: rtl8188eu: core: rtw_xmt: Delete spaces before tabs

PATCH In review Ioana Ciornei 2 participants 3 messages Mar 9, 2015 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: staging: rtl8188eu: core: rtw_xmt: Delete spaces before tabs

This patch fixes the checkpatch.pl warning:

WARNING: please, no space before tabs

---
 drivers/staging/rtl8188eu/core/rtw_xmit.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +6 -6
index 7a71df1..7a35c47 100644
@@ -94,7 +94,7 @@ s32	_rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
 	}
 	pxmitpriv->pxmit_frame_buf = (u8 *)N_BYTE_ALIGMENT((size_t)(pxmitpriv->pallocated_frame_buf), 4);
 	/* pxmitpriv->pxmit_frame_buf = pxmitpriv->pallocated_frame_buf + 4 - */
-	/* 						((size_t) (pxmitpriv->pallocated_frame_buf) &3); */
+	/*						((size_t) (pxmitpriv->pallocated_frame_buf) &3); */
 
 	pxframe = (struct xmit_frame *)pxmitpriv->pxmit_frame_buf;
 
@@ -132,7 +132,7 @@ s32	_rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
 
 	pxmitpriv->pxmitbuf = (u8 *)N_BYTE_ALIGMENT((size_t)(pxmitpriv->pallocated_xmitbuf), 4);
 	/* pxmitpriv->pxmitbuf = pxmitpriv->pallocated_xmitbuf + 4 - */
-	/* 						((size_t) (pxmitpriv->pallocated_xmitbuf) &3); */
+	/*						((size_t) (pxmitpriv->pallocated_xmitbuf) &3); */
 
 	pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmitbuf;
 
@@ -283,8 +283,8 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *
 
 	/*  (1) RTS_Threshold is compared to the MPDU, not MSDU. */
 	/*  (2) If there are more than one frag in  this MSDU, only the first frag uses protection frame. */
-	/* 		Other fragments are protected by previous fragment. */
-	/* 		So we only need to check the length of first fragment. */
+	/*		Other fragments are protected by previous fragment. */
+	/*		So we only need to check the length of first fragment. */
 	if (pmlmeext->cur_wireless_mode < WIRELESS_11_24N  || padapter->registrypriv.wifi_spec) {
 		if (sz > padapter->registrypriv.rts_thresh) {
 			pattrib->vcs_mode = RTS_CTS;
@@ -413,7 +413,7 @@ static void set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib)
 	/*  get user_prio from IP hdr */
 	if (pattrib->ether_type == 0x0800) {
 		_rtw_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr));
-/* 		user_prio = (ntohs(ip_hdr.tos) >> 5) & 0x3; */
+/*		user_prio = (ntohs(ip_hdr.tos) >> 5) & 0x3; */
 		user_prio = ip_hdr.tos >> 5;
 	} else if (pattrib->ether_type == 0x888e) {
 		/*  "When priority processing of data frames is supported, */
@@ -1469,7 +1469,7 @@ s32 rtw_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmitfram
 	if (rtw_xmit_classifier(padapter, pxmitframe) == _FAIL) {
 		RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_,
 			 ("rtw_xmitframe_enqueue: drop xmit pkt for classifier fail\n"));
-/* 		pxmitframe->pkt = NULL; */
+/*		pxmitframe->pkt = NULL; */
 		return _FAIL;
 	}
 
Signature · 1 line
1.9.1
#1 lore raw

For the subject, you should be able to put just staging: rtl8188eu:. You can do git log --oneline drivers/staging/rtl8188eu/core/rtw_xmit.cto see what subjects others have used for this file.

Also, you can just send the patch to the outreachy mailing list. Greg is subscribed.

julia

Quoted 70 lines · Ioana Ciornei

This patch fixes the checkpatch.pl warning:

WARNING: please, no space before tabs

---
 drivers/staging/rtl8188eu/core/rtw_xmit.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +6 -7
index 7a71df1..7a35c47 100644
@@ -94,7 +94,7 @@ s32	_rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
 	}
 	pxmitpriv->pxmit_frame_buf = (u8 *)N_BYTE_ALIGMENT((size_t)(pxmitpriv->pallocated_frame_buf), 4);
 	/* pxmitpriv->pxmit_frame_buf = pxmitpriv->pallocated_frame_buf + 4 - */
-	/* 						((size_t) (pxmitpriv->pallocated_frame_buf) &3); */
+	/*						((size_t) (pxmitpriv->pallocated_frame_buf) &3); */
 
 	pxframe = (struct xmit_frame *)pxmitpriv->pxmit_frame_buf;
 
@@ -132,7 +132,7 @@ s32	_rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
 
 	pxmitpriv->pxmitbuf = (u8 *)N_BYTE_ALIGMENT((size_t)(pxmitpriv->pallocated_xmitbuf), 4);
 	/* pxmitpriv->pxmitbuf = pxmitpriv->pallocated_xmitbuf + 4 - */
-	/* 						((size_t) (pxmitpriv->pallocated_xmitbuf) &3); */
+	/*						((size_t) (pxmitpriv->pallocated_xmitbuf) &3); */
 
 	pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmitbuf;
 
@@ -283,8 +283,8 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *
 
 	/*  (1) RTS_Threshold is compared to the MPDU, not MSDU. */
 	/*  (2) If there are more than one frag in  this MSDU, only the first frag uses protection frame. */
-	/* 		Other fragments are protected by previous fragment. */
-	/* 		So we only need to check the length of first fragment. */
+	/*		Other fragments are protected by previous fragment. */
+	/*		So we only need to check the length of first fragment. */
 	if (pmlmeext->cur_wireless_mode < WIRELESS_11_24N  || padapter->registrypriv.wifi_spec) {
 		if (sz > padapter->registrypriv.rts_thresh) {
 			pattrib->vcs_mode = RTS_CTS;
@@ -413,7 +413,7 @@ static void set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib)
 	/*  get user_prio from IP hdr */
 	if (pattrib->ether_type == 0x0800) {
 		_rtw_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr));
-/* 		user_prio = (ntohs(ip_hdr.tos) >> 5) & 0x3; */
+/*		user_prio = (ntohs(ip_hdr.tos) >> 5) & 0x3; */
 		user_prio = ip_hdr.tos >> 5;
 	} else if (pattrib->ether_type == 0x888e) {
 		/*  "When priority processing of data frames is supported, */
@@ -1469,7 +1469,7 @@ s32 rtw_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmitfram
 	if (rtw_xmit_classifier(padapter, pxmitframe) == _FAIL) {
 		RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_,
 			 ("rtw_xmitframe_enqueue: drop xmit pkt for classifier fail\n"));
-/* 		pxmitframe->pkt = NULL; */
+/*		pxmitframe->pkt = NULL; */
 		return _FAIL;
 	}
 
--

1.9.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1425908752-7321-1-git-send-email-ciorneiioana%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw

Thank you for the advice, Julia.
And sorry for my clumsiness.

Ioana

Quoted 81 lines · Julia Lawall

For the subject, you should be able to put just staging: rtl8188eu:. You can do git log --oneline drivers/staging/rtl8188eu/core/rtw_xmit.cto see what subjects others have used for this file.

Also, you can just send the patch to the outreachy mailing list. Greg is subscribed.

julia

Quoted 70 lines · Ioana Ciornei

This patch fixes the checkpatch.pl warning:

WARNING: please, no space before tabs

---
 drivers/staging/rtl8188eu/core/rtw_xmit.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/staging/rtl8188eu/core/rtw_xmit.c +6 -7
index 7a71df1..7a35c47 100644
@@ -94,7 +94,7 @@ s32 _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
      }
      pxmitpriv->pxmit_frame_buf = (u8 *)N_BYTE_ALIGMENT((size_t)(pxmitpriv->pallocated_frame_buf), 4);
      /* pxmitpriv->pxmit_frame_buf = pxmitpriv->pallocated_frame_buf + 4 - */
-     /*                                              ((size_t) (pxmitpriv->pallocated_frame_buf) &3); */
+     /*                                              ((size_t) (pxmitpriv->pallocated_frame_buf) &3); */
 
      pxframe = (struct xmit_frame *)pxmitpriv->pxmit_frame_buf;
 
@@ -132,7 +132,7 @@ s32       _rtw_init_xmit_priv(struct xmit_priv *pxmitpriv, struct adapter *padapter)
 
      pxmitpriv->pxmitbuf = (u8 *)N_BYTE_ALIGMENT((size_t)(pxmitpriv->pallocated_xmitbuf), 4);
      /* pxmitpriv->pxmitbuf = pxmitpriv->pallocated_xmitbuf + 4 - */
-     /*                                              ((size_t) (pxmitpriv->pallocated_xmitbuf) &3); */
+     /*                                              ((size_t) (pxmitpriv->pallocated_xmitbuf) &3); */
 
      pxmitbuf = (struct xmit_buf *)pxmitpriv->pxmitbuf;
 
@@ -283,8 +283,8 @@ static void update_attrib_vcs_info(struct adapter *padapter, struct xmit_frame *
 
      /*  (1) RTS_Threshold is compared to the MPDU, not MSDU. */
      /*  (2) If there are more than one frag in  this MSDU, only the first frag uses protection frame. */
-     /*              Other fragments are protected by previous fragment. */
-     /*              So we only need to check the length of first fragment. */
+     /*              Other fragments are protected by previous fragment. */
+     /*              So we only need to check the length of first fragment. */
      if (pmlmeext->cur_wireless_mode < WIRELESS_11_24N  || padapter->registrypriv.wifi_spec) {
              if (sz > padapter->registrypriv.rts_thresh) {
                      pattrib->vcs_mode = RTS_CTS;
@@ -413,7 +413,7 @@ static void set_qos(struct pkt_file *ppktfile, struct pkt_attrib *pattrib)
      /*  get user_prio from IP hdr */
      if (pattrib->ether_type == 0x0800) {
              _rtw_pktfile_read(ppktfile, (u8 *)&ip_hdr, sizeof(ip_hdr));
-/*           user_prio = (ntohs(ip_hdr.tos) >> 5) & 0x3; */
+/*           user_prio = (ntohs(ip_hdr.tos) >> 5) & 0x3; */
              user_prio = ip_hdr.tos >> 5;
      } else if (pattrib->ether_type == 0x888e) {
              /*  "When priority processing of data frames is supported, */
@@ -1469,7 +1469,7 @@ s32 rtw_xmitframe_enqueue(struct adapter *padapter, struct xmit_frame *pxmitfram
      if (rtw_xmit_classifier(padapter, pxmitframe) == _FAIL) {
              RT_TRACE(_module_rtl871x_xmit_c_, _drv_err_,
                       ("rtw_xmitframe_enqueue: drop xmit pkt for classifier fail\n"));
-/*           pxmitframe->pkt = NULL; */
+/*           pxmitframe->pkt = NULL; */
              return _FAIL;
      }
 
--

1.9.1

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1425908752-7321-1-git-send-email-ciorneiioana%40gmail.com.
For more options, visit https://groups.google.com/d/optout.