mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7925: fix declaration after case label in tx done event
Older compilers reject a declaration directly following a case label. Move the event pointer to the function's declaration block. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
+1
-2
@@ -461,6 +461,7 @@ mt7925_mcu_tx_done_event(struct mt792x_dev *dev, struct sk_buff *skb)
|
||||
u8 rsv[3];
|
||||
u8 data[];
|
||||
} __packed * txs;
|
||||
struct mt7928_uni_txdone_event *evt;
|
||||
struct tlv *tlv;
|
||||
u32 tlv_len;
|
||||
|
||||
@@ -471,8 +472,6 @@ mt7925_mcu_tx_done_event(struct mt792x_dev *dev, struct sk_buff *skb)
|
||||
while (tlv_len > 0 && le16_to_cpu(tlv->len) <= tlv_len) {
|
||||
switch (le16_to_cpu(tlv->tag)) {
|
||||
case UNI_EVENT_TX_DONE_MSG:
|
||||
struct mt7928_uni_txdone_event *evt;
|
||||
|
||||
if (!is_mt7928(&dev->mt76))
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user