diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index 12597ff8cfb0b05e619add7c4e731ce890302f8b..6b8f3e6aa43c2c144d207b49bc69a0e25e223139 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -2192,7 +2192,7 @@ static __init void of_unittest_overlay_high_level(void) mutex_lock(&of_mutex); - for (np = of_root->child; np; np = np->sibling) + for (last_sibling = np = of_root->child; np; np = np->sibling) last_sibling = np; if (last_sibling)