From a3793098cb86a9cfd12ba2429dfaad217fd559b3 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Thu, 5 Sep 2019 17:33:19 +0200 Subject: [PATCH] xtensa: xtensa_intgen.py: Change 'not lvl in ...' to 'lvl not in ...' Use the 'not in' operator. Fixes this pylint warning: arch/xtensa/core/xtensa_intgen.py:77:7: C0113: Consider changing "not lvl in ints_by_lvl" to "lvl not in ints_by_lvl" (unneeded-not) Fixing pylint warnings for a CI check. Signed-off-by: Ulf Magnusson --- arch/xtensa/core/xtensa_intgen.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/xtensa/core/xtensa_intgen.py b/arch/xtensa/core/xtensa_intgen.py index 21dc4f1c46b..8736e500b7e 100755 --- a/arch/xtensa/core/xtensa_intgen.py +++ b/arch/xtensa/core/xtensa_intgen.py @@ -74,7 +74,7 @@ for match in re.finditer(r'__xtensa_int_level_magic__\s+(\d+)\s+(\d+)', blob): irq = int(match.group(1)) lvl = int(match.group(2)) - if not lvl in ints_by_lvl: + if lvl not in ints_by_lvl: ints_by_lvl[lvl] = [] ints_by_lvl[lvl].append(irq)