From: Peng Fan Date: Tue, 24 Nov 2015 09:03:47 +0000 (+0800) Subject: common: miiphyutil: no need to check name of mii_dev X-Git-Tag: v2016.01-rc2~37 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d39449b110c8da47bf5b8dc372bd5cd1c33a1a67;p=u-boot common: miiphyutil: no need to check name of mii_dev The entry name of mii_dev is an array not pointer, so no need to check. Signed-off-by: Peng Fan Cc: Joe Hershberger Cc: Simon Glass Cc: Bin Meng Reviewed-by: Simon Glass Acked-by: Joe Hershberger Reviewed-by: Bin Meng --- diff --git a/common/miiphyutil.c b/common/miiphyutil.c index e499b58836..0811e098b4 100644 --- a/common/miiphyutil.c +++ b/common/miiphyutil.c @@ -159,7 +159,7 @@ void mdio_free(struct mii_dev *bus) int mdio_register(struct mii_dev *bus) { - if (!bus || !bus->name || !bus->read || !bus->write) + if (!bus || !bus->read || !bus->write) return -1; /* check if we have unique name */