mt76: mt7615: do not update pm stats in case of error
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 13 Jun 2022 12:03:28 +0000 (14:03 +0200)
committerFelix Fietkau <nbd@nbd.name>
Mon, 11 Jul 2022 11:40:02 +0000 (13:40 +0200)
commit79717c4eeeae9dec894794fbe8af72f08f03ebdd
tree67d0701e5b0b151431bd8c5ce6aee0a0adca2fe2
parentcfd6110998e33b8695ed8931f39b44d337aa2d50
mt76: mt7615: do not update pm stats in case of error

Do not update pm stats if mt7615_mcu_fw_pmctrl returns an error.

Fixes: abe912ae3cd42 ("mt76: mt7663: 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/mt7615/mcu.c