scripts: Remove unnecessary () around if/while conditions in Python
Not needed in Python. Detected by check C0325 in pylint3.
Also replace an
if len(tag):
with just
if tag:
Empty strings, byte strings, lists, etc., are falsy in Python.
Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
diff --git a/scripts/check_link_map.py b/scripts/check_link_map.py
index 47c73eb..b7385f0 100755
--- a/scripts/check_link_map.py
+++ b/scripts/check_link_map.py
@@ -45,7 +45,7 @@
vma = int(match.group(2), 16)
size = int(match.group(3), 16)
- if (sec == "bss"):
+ if sec == "bss":
# Make sure we don't compare the last section of kernel data
# with the first section of application data, the kernel's bss
# and noinit are in between.