projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b41d4b8
)
sandbox: p2sb: Silence compiler warning
author
Simon Glass
<sjg@chromium.org>
Sat, 8 Feb 2020 14:53:10 +0000
(07:53 -0700)
committer
Simon Glass
<sjg@chromium.org>
Thu, 16 Apr 2020 14:07:57 +0000
(08:07 -0600)
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>
drivers/misc/p2sb_emul.c
patch
|
blob
|
history
diff --git
a/drivers/misc/p2sb_emul.c
b/drivers/misc/p2sb_emul.c
index a6ee9a235e3b0a46ca6b4cebb55a6dc7013163fd..02f7a7ea67579fcfd71322b0f595535867ba37c7 100644
(file)
--- 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;