From 7aab31bb8a46aeaded3ba682cc3ebfc22a70dbcd Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Wed, 8 Jan 2020 22:52:53 +0100 Subject: cjtag: Use ternary operator where possible. --- decoders/cjtag/pd.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'decoders/cjtag/pd.py') diff --git a/decoders/cjtag/pd.py b/decoders/cjtag/pd.py index 9849b3a..885ecec 100644 --- a/decoders/cjtag/pd.py +++ b/decoders/cjtag/pd.py @@ -307,10 +307,7 @@ class Decoder(srd.Decoder): if self.cjtagstate == 'OSCAN1': if self.oscan1cycle == 0: # nTDI - if tms == 0: - tdi_real = 1 - else: - tdi_real = 0 + tdi_real = 1 if (tms == 0) else 0 self.oscan1cycle = 1 elif self.oscan1cycle == 1: # TMS tms_real = tms -- cgit v1.2.3-70-g09d2