mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 18:39:59 +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 <lorenzo@kernel.org> Signed-off-by: Sean Wang <sean.wang@mediatek.com> Signed-off-by: Felix Fietkau <nbd@nbd.name>
This commit is contained in:
parent
86f15d043b
commit
51fd13b78e
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue