From 1d7e79da75afbdfd5d1863de6482bf4cd21e5c7e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Tue, 10 Dec 2019 22:05:51 +0100 Subject: ac97/lin: Remove some unneeded code snippets. --- decoders/ac97/pd.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'decoders/ac97/pd.py') 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: -- cgit v1.2.3-70-g09d2