mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: Remove unnecessary (void*) conversions
No need cast (void *) to (struct mt7615_phy *). Signed-off-by: Wu Yunchuan <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
committed by
Felix Fietkau
parent
5539001fe4
commit
48d4133806
+2
-2
@@ -453,7 +453,7 @@ mt7615_mcu_scan_event(struct mt7615_dev *dev, struct sk_buff *skb)
|
||||
else
|
||||
mphy = &dev->mt76.phy;
|
||||
|
||||
phy = (struct mt7615_phy *)mphy->priv;
|
||||
phy = mphy->priv;
|
||||
|
||||
spin_lock_bh(&dev->mt76.lock);
|
||||
__skb_queue_tail(&phy->scan_event_list, skb);
|
||||
@@ -481,7 +481,7 @@ mt7615_mcu_roc_event(struct mt7615_dev *dev, struct sk_buff *skb)
|
||||
|
||||
ieee80211_ready_on_channel(mphy->hw);
|
||||
|
||||
phy = (struct mt7615_phy *)mphy->priv;
|
||||
phy = mphy->priv;
|
||||
phy->roc_grant = true;
|
||||
wake_up(&phy->roc_wait);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user