From: Luke Kenneth Casson Leighton Date: Mon, 29 Apr 2019 02:54:43 +0000 (+0100) Subject: chain cannot be empty X-Git-Tag: ls180-24jan2020~1135 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8e95fa22a2272be78c3f49340f62a39b9d267146;p=ieee754fpu.git chain cannot be empty --- diff --git a/src/add/iocontrol.py b/src/add/iocontrol.py index 6c78cee1..03de3c43 100644 --- a/src/add/iocontrol.py +++ b/src/add/iocontrol.py @@ -410,7 +410,6 @@ class StageChain(StageCls): return _spec(self.chain[-1].ospec, "chainout") def _specallocate_setup(self, m, i): - o = i # in case chain is empty for (idx, c) in enumerate(self.chain): if hasattr(c, "setup"): c.setup(m, i) # stage may have some module stuff @@ -425,7 +424,6 @@ class StageChain(StageCls): return o # last loop is the output def _noallocate_setup(self, m, i): - o = i # in case chain is empty for (idx, c) in enumerate(self.chain): if hasattr(c, "setup"): c.setup(m, i) # stage may have some module stuff