diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-07-22 08:38:40 +0200 |
---|---|---|
committer | Felix Fietkau <nbd@nbd.name> | 2022-09-15 12:53:59 +0200 |
commit | dc218cd6e945ed4e4fb547c6b776c3044b70050e (patch) | |
tree | 29dba68a9d4d947d69b6131af651d97fdcbecefe /drivers/net/wireless/mediatek/mt76 | |
parent | wifi: mt76: mt7921: fix use after free in mt7921_acpi_read() (diff) | |
download | linux-dc218cd6e945ed4e4fb547c6b776c3044b70050e.tar.xz linux-dc218cd6e945ed4e4fb547c6b776c3044b70050e.zip |
wifi: 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.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'drivers/net/wireless/mediatek/mt76')
-rw-r--r-- | drivers/net/wireless/mediatek/mt76/mt7921/pci.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c index 8f1f9f7d1fe2..d14feb322840 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7921/pci.c +++ b/drivers/net/wireless/mediatek/mt76/mt7921/pci.c @@ -406,9 +406,6 @@ static int mt7921_pci_suspend(struct device *device) if (err) goto restore_napi; - if (err) - goto restore_napi; - return 0; restore_napi: |