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

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

Commit Message

Teodora Baluta Oct. 21, 2013, 12:40 a.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>
---
 drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c |   10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

Comments

Josh Triplett Oct. 21, 2013, 7:03 p.m. UTC | #1
On Mon, Oct 21, 2013 at 03:40:55AM +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>
> ---
>  drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c |   10 +++++-----
>  1 file changed, 5 insertions(+), 5 deletions(-)
> 
> diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> index 0e59504..0ebab75 100644
> --- a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> +++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
> @@ -498,11 +498,11 @@ 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);
>  			}

The else has the same problem.

> 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.

Patch
diff mbox

diff --git a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
index 0e59504..0ebab75 100644
--- a/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
+++ b/drivers/staging/rtl8187se/ieee80211/ieee80211_tx.c
@@ -498,11 +498,11 @@  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);
 			}