diff options
author | Simon Glass <sjg@chromium.org> | 2020-02-08 07:53:10 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-04-16 08:07:57 -0600 |
commit | 8a770f9eb7be58439361e0ad30a0c122cd46dc7b (patch) | |
tree | 4dc175eac3ee20986e5c86e1c1beadd3ec60dd85 /drivers/misc | |
parent | b41d4b83f0203be79a3bfa1e4bde316355c7f2a0 (diff) | |
download | u-boot-8a770f9eb7be58439361e0ad30a0c122cd46dc7b.tar.gz u-boot-8a770f9eb7be58439361e0ad30a0c122cd46dc7b.tar.bz2 u-boot-8a770f9eb7be58439361e0ad30a0c122cd46dc7b.zip |
sandbox: p2sb: Silence compiler warning
Some compilers produce a warning about 'child' being used before init.
Silence this by setting to NULL at the start.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/p2sb_emul.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/misc/p2sb_emul.c b/drivers/misc/p2sb_emul.c index a6ee9a235e..02f7a7ea67 100644 --- a/drivers/misc/p2sb_emul.c +++ b/drivers/misc/p2sb_emul.c @@ -215,7 +215,7 @@ static int sandbox_p2sb_emul_map_physmem(struct udevice *dev, void **ptrp) { struct p2sb_emul_priv *priv = dev_get_priv(dev); - struct udevice *child; + struct udevice *child = NULL; /* Silence compiler warning */ unsigned int offset; int barnum; int ret; |