Skip to content

Commit e73bd62

Browse files
martin-kaisergclement
authored andcommitted
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>
1 parent 254f496 commit e73bd62

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/arm/mach-mvebu/coherency.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,6 @@ static void __init armada_370_coherency_init(struct device_node *np)
133133

134134
cpu_config_np = of_find_compatible_node(NULL, NULL,
135135
"marvell,armada-xp-cpu-config");
136-
if (!cpu_config_np)
137-
goto exit;
138136

139137
cpu_config_base = of_iomap(cpu_config_np, 0);
140138
if (!cpu_config_base) {

0 commit comments

Comments
 (0)