diff mbox

[OPW,kernel,v2,07/13] staging: rtl8187se: fix conditional statement indent

Message ID 1382398644-511-8-git-send-email-teobaluta@gmail.com
State New, archived
Headers show

Commit Message

Teodora Baluta Oct. 21, 2013, 11:37 p.m. UTC
This patch fixes the following checkpatch warning:
WARNING: suspect code indent for conditional statements (24, 26)

Signed-off-by: Teodora Baluta <teobaluta@gmail.com>

---
Changes since v1:
* add fix for the else statement
---
 drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

Comments

Josh Triplett Oct. 21, 2013, 11:43 p.m. UTC | #1
On Tue, Oct 22, 2013 at 02:37:18AM +0300, Teodora Baluta wrote:
> This patch fixes the following checkpatch warning:
> WARNING: suspect code indent for conditional statements (24, 26)
> 
> Signed-off-by: Teodora Baluta <teobaluta@gmail.com>

Reviewed-by: Josh Triplett <josh@joshtriplett.org>

> ---
> Changes since v1:
> * add fix for the else statement
> ---
>  drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c |   12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 
> diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> index ae72594..2fa89e0 100644
> --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> @@ -501,13 +501,13 @@ int ieee80211_rtl_xmit(struct sk_buff *skb,
>  				bytes = bytes_last_frag;
>  			}
>  			if (ieee->current_network.QoS_Enable) {
> -			  /*
> -			   * add 1 only indicate to corresponding seq number
> -			   * control 2006/7/12
> -			   */
> -			  frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[UP2AC(skb->priority)+1]<<4 | i);
> +				/*
> +				 * add 1 only indicate to corresponding seq
> +				 * number control 2006/7/12
> +				 */
> +				frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[UP2AC(skb->priority)+1]<<4 | i);
>  			} else {
> -			  frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4 | i);
> +				frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4 | i);
>  			}
>  
>  			/* Put a SNAP header on the first fragment */
> -- 
> 1.7.10.4
> 
> -- 
> You received this message because you are subscribed to the Google Groups "opw-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to opw-kernel+unsubscribe@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
diff mbox

Patch

diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
index ae72594..2fa89e0 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
@@ -501,13 +501,13 @@  int ieee80211_rtl_xmit(struct sk_buff *skb,
 				bytes = bytes_last_frag;
 			}
 			if (ieee->current_network.QoS_Enable) {
-			  /*
-			   * add 1 only indicate to corresponding seq number
-			   * control 2006/7/12
-			   */
-			  frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[UP2AC(skb->priority)+1]<<4 | i);
+				/*
+				 * add 1 only indicate to corresponding seq
+				 * number control 2006/7/12
+				 */
+				frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[UP2AC(skb->priority)+1]<<4 | i);
 			} else {
-			  frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4 | i);
+				frag_hdr->seq_ctl = cpu_to_le16(ieee->seq_ctrl[0]<<4 | i);
 			}
 
 			/* Put a SNAP header on the first fragment */