mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 11:26:02 +09:00
Staging: rtl8192e: rtllib_tx: fixed alignment matching open parenthesis
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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
db213ea614
commit
2de698578f
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user