mt76x0: remove unused stat_work
authorLorenzo Bianconi <lorenzo.bianconi@redhat.com>
Thu, 6 Sep 2018 09:18:39 +0000 (11:18 +0200)
committerFelix Fietkau <nbd@nbd.name>
Wed, 19 Sep 2018 10:29:53 +0000 (12:29 +0200)
Remove unused definition of stat_work delayed_work definition and
related flush/cancel routines

Signed-off-by: Lorenzo Bianconi <lorenzo.bianconi@redhat.com>
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
drivers/net/wireless/mediatek/mt76/mt76x0/init.c
drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h

index 75597b5a242789f9388d841a24abc218f42cb353..1f4a0fff684b17471eaf976f67fdffc59ef393f7 100644 (file)
@@ -362,8 +362,6 @@ static void mt76x0_mac_stop_hw(struct mt76x0_dev *dev)
 void mt76x0_mac_stop(struct mt76x0_dev *dev)
 {
        mt76x0_mac_stop_hw(dev);
-       flush_delayed_work(&dev->stat_work);
-       cancel_delayed_work_sync(&dev->stat_work);
 }
 
 static void mt76x0_stop_hardware(struct mt76x0_dev *dev)
index 0bcf54c0a06f148d28741de953d51d4605c34ee9..cd260317de27104cd019b7e864ff4529746daa8b 100644 (file)
@@ -84,8 +84,6 @@ struct mt76x0_dev {
        struct delayed_work cal_work;
        struct delayed_work mac_work;
 
-       struct delayed_work stat_work;
-
        spinlock_t mac_lock;
 
        const u16 *beacon_offsets;