x86: gen_idt.py: Simplify test with 'not in'
Getting slightly subjective, but fixes this pylint warning: arch/x86/gen_idt.py:281:11: R1714: Consider merging these comparisons with "in" to 'handler not in (spur_code, spur_nocode)' (consider-using-in) Getting rid of pylint warnings for a CI check. I could disable any controversial ones (it's already a list of warnings to enable anyway). Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
This commit is contained in:
parent
b558956bd7
commit
ad8ac7469b
1 changed files with 1 additions and 1 deletions
|
@ -277,7 +277,7 @@ def create_irq_vectors_allocated(vectors, spur_code, spur_nocode, filename):
|
|||
vbits = [0 for i in range(num_chars)]
|
||||
for i in range(len(vectors)):
|
||||
handler, _, _ = vectors[i]
|
||||
if handler != spur_code and handler != spur_nocode:
|
||||
if handler not in (spur_code, spur_nocode):
|
||||
continue
|
||||
|
||||
vbit_index = i // 8
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue