]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
Staging: rtl8192e: rtllib_tx: fixed alignment matching open parenthesis
authorAaron Lawrence <t4rmin@zohomail.com>
Mon, 24 Oct 2022 12:26:59 +0000 (19:26 +0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 25 Oct 2022 17:23:35 +0000 (19:23 +0200)
Aligned multiple statements to match the open parenthesis on the
line before it as per the Linux kernel coding-style regulations.
The issues were flagged by the checkpatch script.

Signed-off-by: Aaron Lawrence <t4rmin@zohomail.com>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/b9a984cf481018a8ef61e4a579cb307eaf1bdc56.1666612946.git.t4rmin@zohomail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtllib_tx.c

index abb5b57d142beb1b034a2787a839471208617a69..38dfdcf99feccbadb33efeb81d6ef57eea9c43e5 100644 (file)
@@ -290,7 +290,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
                return;
        if (pHTInfo->bCurrentAMPDUEnable) {
                if (!GetTs(ieee, (struct ts_common_info **)(&pTxTs), hdr->addr1,
-                   skb->priority, TX_DIR, true)) {
+                          skb->priority, TX_DIR, true)) {
                        netdev_info(ieee->dev, "%s: can't get TS\n", __func__);
                        return;
                }
@@ -306,7 +306,7 @@ static void rtllib_tx_query_agg_cap(struct rtllib_device *ieee,
                        goto FORCED_AGG_SETTING;
                } else if (!pTxTs->bUsingBa) {
                        if (SN_LESS(pTxTs->TxAdmittedBARecord.ba_start_seq_ctrl.field.seq_num,
-                          (pTxTs->TxCurSeq+1)%4096))
+                                   (pTxTs->TxCurSeq+1)%4096))
                                pTxTs->bUsingBa = true;
                        else
                                goto FORCED_AGG_SETTING;
@@ -442,7 +442,7 @@ static void rtllib_query_protectionmode(struct rtllib_device *ieee,
                        u8 HTOpMode = pHTInfo->current_op_mode;
 
                        if ((pHTInfo->bCurBW40MHz && (HTOpMode == 2 ||
-                            HTOpMode == 3)) ||
+                                                     HTOpMode == 3)) ||
                             (!pHTInfo->bCurBW40MHz && HTOpMode == 3)) {
                                tcb_desc->rts_rate = MGN_24M;
                                tcb_desc->bRTSEnable = true;
@@ -501,7 +501,7 @@ static u16 rtllib_query_seqnum(struct rtllib_device *ieee, struct sk_buff *skb,
                struct tx_ts_record *pTS = NULL;
 
                if (!GetTs(ieee, (struct ts_common_info **)(&pTS), dst,
-                   skb->priority, TX_DIR, true))
+                          skb->priority, TX_DIR, true))
                        return 0;
                seqnum = pTS->TxCurSeq;
                pTS->TxCurSeq = (pTS->TxCurSeq+1)%4096;
@@ -618,7 +618,7 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
                                        udp = (struct udphdr *)((u8 *)ip +
                                              (ip->ihl << 2));
                                        if (((((u8 *)udp)[1] == 68) &&
-                                          (((u8 *)udp)[3] == 67)) ||
+                                            (((u8 *)udp)[3] == 67)) ||
                                           ((((u8 *)udp)[1] == 67) &&
                                           (((u8 *)udp)[3] == 68))) {
                                                bdhcp = true;
@@ -712,11 +712,11 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
                        /* in case we are a client verify acm is not set for this ac */
                        while (unlikely(ieee->wmm_acm & (0x01 << skb->priority))) {
                                netdev_info(ieee->dev, "skb->priority = %x\n",
-                                               skb->priority);
+                                           skb->priority);
                                if (wme_downgrade_ac(skb))
                                        break;
                                netdev_info(ieee->dev, "converted skb->priority = %x\n",
-                                          skb->priority);
+                                           skb->priority);
                        }
 
                        qos_ctl |= skb->priority;
@@ -813,7 +813,7 @@ static int rtllib_xmit_inter(struct sk_buff *skb, struct net_device *dev)
                        if ((qos_activated) && (!bIsMulticast)) {
                                frag_hdr->seq_ctl =
                                         cpu_to_le16(rtllib_query_seqnum(ieee, skb_frag,
-                                                            header.addr1));
+                                                                        header.addr1));
                                frag_hdr->seq_ctl =
                                         cpu_to_le16(le16_to_cpu(frag_hdr->seq_ctl)<<4 | i);
                        } else {