mirror of
https://github.com/outbackdingo/mt76.git
synced 2026-10-24 13:26:48 +00:00
wifi: mt76: mt7921u: remove unnecessary MT76_STATE_SUSPEND
remove unnecessary MT76_STATE_SUSPEND manipulation to be consistent with the mt7921[e, s] driver. Acked-by: Lorenzo Bianconi <[email protected]> Signed-off-by: Sean Wang <[email protected]> Signed-off-by: Felix Fietkau <[email protected]>
This commit is contained in:
@@ -314,8 +314,6 @@ static int mt7921u_suspend(struct usb_interface *intf, pm_message_t state)
|
||||
mt76u_stop_rx(&dev->mt76);
|
||||
mt76u_stop_tx(&dev->mt76);
|
||||
|
||||
set_bit(MT76_STATE_SUSPEND, &dev->mphy.state);
|
||||
|
||||
return 0;
|
||||
|
||||
failed:
|
||||
@@ -355,8 +353,6 @@ static int mt7921u_resume(struct usb_interface *intf)
|
||||
goto failed;
|
||||
}
|
||||
|
||||
clear_bit(MT76_STATE_SUSPEND, &dev->mphy.state);
|
||||
|
||||
err = mt76u_resume_rx(&dev->mt76);
|
||||
if (err < 0)
|
||||
goto failed;
|
||||
|
||||
Reference in New Issue
Block a user