config: backlight: content doesn't have to be a dictionary

And, particle_from_config() will take care of asserting on the correct
type anyway.
This commit is contained in:
Daniel Eklöf 2019-01-09 21:17:41 +01:00
parent 67767e6f54
commit 706313b1e5

View file

@ -513,7 +513,6 @@ module_backlight_from_config(const struct yml_node *node,
const struct yml_node *c = yml_get_value(node, "content");
assert(yml_is_scalar(name));
assert(yml_is_dict(c));
return module_backlight(
yml_value_as_string(name), particle_from_config(c, parent_font));