diff --git a/lib/activate/dev_manager.c b/lib/activate/dev_manager.c index 3404e1a42..69b654dac 100644 --- a/lib/activate/dev_manager.c +++ b/lib/activate/dev_manager.c @@ -1095,7 +1095,7 @@ static int _create_lv_symlinks(struct dev_manager *dm, struct dm_tree_node *root int r = 1; while ((child = dm_tree_next_child(&handle, root, 0))) { - if (!(lvlayer = (struct lv_layer *) dm_tree_node_get_context(child))) + if (!(lvlayer = dm_tree_node_get_context(child))) continue; /* Detect rename */