mirror of
https://github.com/torvalds/linux.git
synced 2026-07-28 01:55:51 +02:00
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>
This commit is contained in:
parent
254f49634e
commit
e73bd62dd7
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user