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:
Ulf Magnusson 2019-09-03 14:17:54 +02:00 committed by Anas Nashif
commit ad8ac7469b

View file

@ -277,7 +277,7 @@ def create_irq_vectors_allocated(vectors, spur_code, spur_nocode, filename):
vbits = [0 for i in range(num_chars)] vbits = [0 for i in range(num_chars)]
for i in range(len(vectors)): for i in range(len(vectors)):
handler, _, _ = vectors[i] handler, _, _ = vectors[i]
if handler != spur_code and handler != spur_nocode: if handler not in (spur_code, spur_nocode):
continue continue
vbit_index = i // 8 vbit_index = i // 8