diff options
| author | Martin Kaiser <martin@kaiser.cx> | 2026-05-02 15:14:26 +0300 |
|---|---|---|
| committer | Gregory CLEMENT <gregory.clement@bootlin.com> | 2026-06-01 09:24:46 +0300 |
| commit | e73bd62dd7de707ecbf0d326efcad6756c674da4 (patch) | |
| tree | 4861d2942d916ef131f3f6acf87f6469f65193ec | |
| parent | 254f49634ee16a731174d2ae34bc50bd5f45e731 (diff) | |
| download | linux-e73bd62dd7de707ecbf0d326efcad6756c674da4.tar.xz | |
ARM: mvebu: drop unnecessary NULL check
Don't check the returned pointer from of_find_compatible_node.
We pass this pointer to of_iomap, which handles np==NULL correctly.
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
| -rw-r--r-- | arch/arm/mach-mvebu/coherency.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c index fa2c1e1aeb96..a8288a29c1f5 100644 --- a/arch/arm/mach-mvebu/coherency.c +++ b/arch/arm/mach-mvebu/coherency.c @@ -133,8 +133,6 @@ static void __init armada_370_coherency_init(struct device_node *np) cpu_config_np = of_find_compatible_node(NULL, NULL, "marvell,armada-xp-cpu-config"); - if (!cpu_config_np) - goto exit; cpu_config_base = of_iomap(cpu_config_np, 0); if (!cpu_config_base) { |
