summaryrefslogtreecommitdiff
path: root/decoders
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2019-12-10 22:05:51 +0100
committerUwe Hermann <uwe@hermann-uwe.de>2019-12-10 22:09:35 +0100
commit1d7e79da75afbdfd5d1863de6482bf4cd21e5c7e (patch)
tree7a134a36a7a58c57034882f0652514900174fadc /decoders
parent49f2cdc76dd405dfb674da1284349a28f75c2ebd (diff)
downloadlibsigrokdecode-1d7e79da75afbdfd5d1863de6482bf4cd21e5c7e.tar.gz
libsigrokdecode-1d7e79da75afbdfd5d1863de6482bf4cd21e5c7e.zip
ac97/lin: Remove some unneeded code snippets.
Diffstat (limited to 'decoders')
-rw-r--r--decoders/ac97/pd.py8
-rw-r--r--decoders/lin/pd.py1
2 files changed, 2 insertions, 7 deletions
diff --git a/decoders/ac97/pd.py b/decoders/ac97/pd.py
index 9437253..68eb955 100644
--- a/decoders/ac97/pd.py
+++ b/decoders/ac97/pd.py
@@ -153,8 +153,6 @@ class Decoder(srd.Decoder):
self.put(ss, es, self.out_binary, [cls, data])
def __init__(self):
- self.out_binary = None
- self.out_ann = None
self.reset()
def reset(self):
@@ -168,10 +166,8 @@ class Decoder(srd.Decoder):
}
def start(self):
- if not self.out_binary:
- self.out_binary = self.register(srd.OUTPUT_BINARY)
- if not self.out_ann:
- self.out_ann = self.register(srd.OUTPUT_ANN)
+ self.out_binary = self.register(srd.OUTPUT_BINARY)
+ self.out_ann = self.register(srd.OUTPUT_ANN)
def metadata(self, key, value):
if key == srd.SRD_CONF_SAMPLERATE:
diff --git a/decoders/lin/pd.py b/decoders/lin/pd.py
index 426cbf0..a8b1998 100644
--- a/decoders/lin/pd.py
+++ b/decoders/lin/pd.py
@@ -89,7 +89,6 @@ class Decoder(srd.Decoder):
self.lin_header = []
self.lin_rsp = []
self.lin_version = None
- self.out_ann = None
self.ss_block = None
self.es_block = None