diff options
author | Jinjie Ruan <ruanjinjie@huawei.com> | 2024-06-03 15:56:52 +0300 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2024-06-23 20:09:14 +0300 |
commit | ef7080bd30bab81a1c4dd7c0afd942d2ab43081d (patch) | |
tree | cfaf095ec7f85a2c48f06bfa9beccd44068a79c6 /tools/perf/scripts/python/parallel-perf.py | |
parent | 760d7e719499d64beea62bfcf53938fb233bb6e7 (diff) | |
download | linux-ef7080bd30bab81a1c4dd7c0afd942d2ab43081d.tar.xz |
irqchip/riscv-aplic: Simplify the initialization code
The initialization code has an is_of_node() check and invokes to_of_node()
for every of_property_*() invocation.
to_of_node() has a is_of_node() check already, so simplify the code by
invoking to_of_node() and checking that for NULL. If not NULL hand in the
node pointer to of_property_*().
The same applies to of_property_*() which fails when invoked with a NULL
node pointer.
[ tglx: Massaged change log ]
Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20240603125652.791601-1-ruanjinjie@huawei.com
Diffstat (limited to 'tools/perf/scripts/python/parallel-perf.py')
0 files changed, 0 insertions, 0 deletions