Home
last modified time | relevance | path

Searched hist:"57 a87a25f7563158d2b8a83d782568f1e6fc7fc5" (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dether.c57a87a25f7563158d2b8a83d782568f1e6fc7fc5 Wed Oct 31 13:30:41 UTC 2012 Tom Rini <trini@ti.com> usb gadget ether: Fix warning in is_eth_addr_valid()

The gadget ethernet driver needs to keep copies of the MAC address (at
both endpoints) as strings so it needs a custom function for validation
of the MAC. It was not however performing a totally correct check and
also was emitting a warning about a set but unused variable. The
solution to both is that after checking the string contents we use the
standard test for a valid MAC.

Cc: Joe Hershberger <joe.hershberger@ni.com>
Cc: Marek Vasut <marex@denx.de>
Signed-off-by: Tom Rini <trini@ti.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>