mt76: mt7921: do not update pm states in case of error
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 13 Jun 2022 12:07:08 +0000 (14:07 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:02 +0000 (13:40 +0200)
commitf4a92547fb9818ff272e1e2f0c79cd6b0bc99ce8
tree151245400b53b7c0a1d9d3d9219ea5dbbb9b4890
parent79717c4eeeae9dec894794fbe8af72f08f03ebdd
mt76: mt7921: do not update pm states in case of error

Do not update pm stats if mt7921e_mcu_fw_pmctrl routine returns an
error.

Fixes: 36873246f78a2 ("mt76: mt7921: add awake and doze time accounting")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c