mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
mt76: fix some checkpatch warnings
This fixes the following checkpatch warnings: CHECK: Alignment should match open parenthesis CHECK: No space is necessary after a cast Signed-off-by: Ryder Lee <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -23,8 +23,9 @@ mt76_aggr_release(struct mt76_rx_tid *tid, struct sk_buff_head *frames, int idx)
|
||||
}
|
||||
|
||||
static void
|
||||
mt76_rx_aggr_release_frames(struct mt76_rx_tid *tid, struct sk_buff_head *frames,
|
||||
u16 head)
|
||||
mt76_rx_aggr_release_frames(struct mt76_rx_tid *tid,
|
||||
struct sk_buff_head *frames,
|
||||
u16 head)
|
||||
{
|
||||
int idx;
|
||||
|
||||
@@ -63,15 +64,14 @@ mt76_rx_aggr_check_release(struct mt76_rx_tid *tid, struct sk_buff_head *frames)
|
||||
for (idx = (tid->head + 1) % tid->size;
|
||||
idx != start && nframes;
|
||||
idx = (idx + 1) % tid->size) {
|
||||
|
||||
skb = tid->reorder_buf[idx];
|
||||
if (!skb)
|
||||
continue;
|
||||
|
||||
nframes--;
|
||||
status = (struct mt76_rx_status *) skb->cb;
|
||||
if (!time_after(jiffies, status->reorder_time +
|
||||
REORDER_TIMEOUT))
|
||||
status = (struct mt76_rx_status *)skb->cb;
|
||||
if (!time_after(jiffies,
|
||||
status->reorder_time + REORDER_TIMEOUT))
|
||||
continue;
|
||||
|
||||
mt76_rx_aggr_release_frames(tid, frames, status->seqno);
|
||||
@@ -111,8 +111,8 @@ mt76_rx_aggr_reorder_work(struct work_struct *work)
|
||||
static void
|
||||
mt76_rx_aggr_check_ctl(struct sk_buff *skb, struct sk_buff_head *frames)
|
||||
{
|
||||
struct mt76_rx_status *status = (struct mt76_rx_status *) skb->cb;
|
||||
struct ieee80211_bar *bar = (struct ieee80211_bar *) skb->data;
|
||||
struct mt76_rx_status *status = (struct mt76_rx_status *)skb->cb;
|
||||
struct ieee80211_bar *bar = (struct ieee80211_bar *)skb->data;
|
||||
struct mt76_wcid *wcid = status->wcid;
|
||||
struct mt76_rx_tid *tid;
|
||||
u16 seqno;
|
||||
@@ -137,8 +137,8 @@ mt76_rx_aggr_check_ctl(struct sk_buff *skb, struct sk_buff_head *frames)
|
||||
|
||||
void mt76_rx_aggr_reorder(struct sk_buff *skb, struct sk_buff_head *frames)
|
||||
{
|
||||
struct mt76_rx_status *status = (struct mt76_rx_status *) skb->cb;
|
||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *) skb->data;
|
||||
struct mt76_rx_status *status = (struct mt76_rx_status *)skb->cb;
|
||||
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
|
||||
struct mt76_wcid *wcid = status->wcid;
|
||||
struct ieee80211_sta *sta;
|
||||
struct mt76_rx_tid *tid;
|
||||
@@ -222,7 +222,8 @@ void mt76_rx_aggr_reorder(struct sk_buff *skb, struct sk_buff_head *frames)
|
||||
tid->nframes++;
|
||||
mt76_rx_aggr_release_head(tid, frames);
|
||||
|
||||
ieee80211_queue_delayed_work(tid->dev->hw, &tid->reorder_work, REORDER_TIMEOUT);
|
||||
ieee80211_queue_delayed_work(tid->dev->hw, &tid->reorder_work,
|
||||
REORDER_TIMEOUT);
|
||||
|
||||
out:
|
||||
spin_unlock_bh(&tid->lock);
|
||||
|
||||
Reference in New Issue
Block a user