[PATCH] tests: fst_test_common: remove dead code from HapdRegCtrl

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Johannes Berg <johannes.berg@xxxxxxxxx>

Since refcnt is never incremented, this is dead code,
just remove it.

Signed-off-by: Johannes Berg <johannes.berg@xxxxxxxxx>
---
 tests/hwsim/fst_test_common.py | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/tests/hwsim/fst_test_common.py b/tests/hwsim/fst_test_common.py
index 4b6bab07d780..440d65f9f3fd 100644
--- a/tests/hwsim/fst_test_common.py
+++ b/tests/hwsim/fst_test_common.py
@@ -24,14 +24,9 @@ fst_test_def_reg_domain = '00'
 
 class HapdRegCtrl:
     def __init__(self):
-        self.refcnt = 0
         self.ifname = None
         self.changed = False
 
-    def __del__(self):
-        if self.refcnt != 0 and self.changed == True:
-            self.restore_reg_domain()
-
     def start(self):
         if self.ifname != None:
              hapd = hostapd.Hostapd(self.ifname)
-- 
2.30.2


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux