…
> +++ b/lib/bootconfig.c
> @@ -823,6 +823,10 @@ static int __init xbc_verify_tree(void)
>                       return xbc_parse_error("No closing brace",
>                               xbc_node_get_data(xbc_nodes + i));
>               }
> +             if (xbc_nodes[i].child >= xbc_node_num) {
> +                     return xbc_parse_error("Broken child node",
> +                             xbc_node_get_data(xbc_nodes + i));
> +             }
>       }
…

How do you think about to omit curly brackets for this if branch?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/coding-style.rst?h=v7.0-rc4#n197

Regards,
Markus

Reply via email to