]> git.sur5r.net Git - u-boot/commit
net: sun8i-emac: fix printing NULL character
authorLothar Felten <lothar.felten@gmail.com>
Fri, 13 Jul 2018 08:45:26 +0000 (10:45 +0200)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 16 Jul 2018 06:57:27 +0000 (12:27 +0530)
commit2f157436335a5507bfeda8097e3f687a31e941ce
tree9b60ff4b7615f0ed80ae2350c310199ffc01f85c
parent30e71ad5b7117d17b547aa39b9d17cf4706f629a
net: sun8i-emac: fix printing NULL character

If the variant is not set and therefore NULL, do not attempt to print
the variant.

Signed-off-by: Lothar Felten <lothar.felten@gmail.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Tested-by: Jagan Teki <jagan@openedev.com>
drivers/net/sun8i_emac.c