mirror of
https://xff.cz/git/u-boot/
synced 2025-09-29 22:41:17 +02:00
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>
This commit is contained in:
@@ -215,7 +215,7 @@ static int sandbox_p2sb_emul_map_physmem(struct udevice *dev,
|
|||||||
void **ptrp)
|
void **ptrp)
|
||||||
{
|
{
|
||||||
struct p2sb_emul_priv *priv = dev_get_priv(dev);
|
struct p2sb_emul_priv *priv = dev_get_priv(dev);
|
||||||
struct udevice *child;
|
struct udevice *child = NULL; /* Silence compiler warning */
|
||||||
unsigned int offset;
|
unsigned int offset;
|
||||||
int barnum;
|
int barnum;
|
||||||
int ret;
|
int ret;
|
||||||
|
Reference in New Issue
Block a user