projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30e71ad
)
net: sun8i-emac: fix printing NULL character
author
Lothar Felten
<
[email protected]
>
Fri, 13 Jul 2018 08:45:26 +0000
(10:45 +0200)
committer
Jagan Teki
<
[email protected]
>
Mon, 16 Jul 2018 06:57:27 +0000
(12:27 +0530)
If the variant is not set and therefore NULL, do not attempt to print
the variant.
Signed-off-by: Lothar Felten <
[email protected]
>
Acked-by: Maxime Ripard <
[email protected]
>
Acked-by: Joe Hershberger <
[email protected]
>
Reviewed-by: Jagan Teki <
[email protected]
>
Tested-by: Jagan Teki <
[email protected]
>
drivers/net/sun8i_emac.c
patch
|
blob
|
history
diff --git
a/drivers/net/sun8i_emac.c
b/drivers/net/sun8i_emac.c
index 1f5c630e0232f9faaca3d481087338888bd7708a..23c4d68f778849fd8112b5fed221f8a687dbc89c 100644
(file)
--- a/
drivers/net/sun8i_emac.c
+++ b/
drivers/net/sun8i_emac.c
@@
-843,8
+843,7
@@
static int sun8i_emac_eth_ofdata_to_platdata(struct udevice *dev)
priv->variant = dev_get_driver_data(dev);
if (!priv->variant) {
- printf("%s: Missing variant '%s'\n", __func__,
- (char *)priv->variant);
+ printf("%s: Missing variant\n", __func__);
return -EINVAL;
}