Skip to content
Permalink
Browse files

scripts: gen_kobject_list: Remove redundant parentheses

Making a clean slate for a pylint test in CI.

Signed-off-by: Ulf Magnusson <Ulf.Magnusson@nordicsemi.no>
  • Loading branch information...
ulfalizer authored and andrewboie committed May 7, 2019
1 parent 0396b6e commit 9d3435692dbfa8528a1523f9d3287028ffc49bdb
Showing with 2 additions and 2 deletions.
  1. +2 −2 scripts/gen_kobject_list.py
@@ -162,11 +162,11 @@
def write_gperf_table(fp, eh, objs, static_begin, static_end):
fp.write(header)
num_mutexes = eh.get_sys_mutex_counter()
if (num_mutexes != 0):
if num_mutexes != 0:
fp.write("static struct k_mutex kernel_mutexes[%d] = {\n" % num_mutexes)
for i in range(num_mutexes):
fp.write("_K_MUTEX_INITIALIZER(kernel_mutexes[%d])" % i)
if (i != num_mutexes - 1):
if i != num_mutexes - 1:
fp.write(", ")
fp.write("};\n")

0 comments on commit 9d34356

Please sign in to comment.
You can’t perform that action at this time.