Skip to contentSkip to conversation

mt76: mt7921: delete stray if statement

PATCH New Dan Carpenter 1 participant 1 message Jul 22, 2022

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mt76: mt7921: delete stray if statement

This if statement is never true. It was supposed to have been deleted as part of commit 454b768f9ba6 ("mt76: mt7921: Let PCI core handle power state and use pm_sleep_ptr()") but was missed.

---
 drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/net/wireless/mediatek/mt76/mt7921/pci.c +0 -3
index ea3069d18c35..f72379d4f31b 100644
@@ -409,9 +409,6 @@ static int mt7921_pci_suspend(struct device *device)
 	if (err)
 		goto restore_napi;
 
-	if (err)
-		goto restore_napi;
-
 	return 0;
 
 restore_napi:
Signature · 1 line
2.35.1