[PATCH] sandbox: p2sb: Silence compiler warning

Bin Meng bmeng.cn at gmail.com
Sat Feb 8 16:21:32 CET 2020


On Sat, Feb 8, 2020 at 10:53 PM Simon Glass <sjg at chromium.org> wrote:
>
> Some compilers produce a warning about 'child' being used before init.
> Silence this by setting to NULL at the start.

Should be a compiler bug I think. Which compiler has such issue?

>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  drivers/misc/p2sb_emul.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

Reviewed-by: Bin Meng <bmeng.cn at gmail.com>


More information about the U-Boot mailing list