Tom Rini 57a87a25f7 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>
2012-11-04 11:00:38 -07:00
..
2012-11-04 11:00:37 -07:00
2012-09-01 14:58:29 +02:00
2012-11-04 11:00:37 -07:00
2012-11-04 11:00:37 -07:00
2012-11-04 11:00:38 -07:00
2012-11-04 11:00:36 -07:00
2012-03-26 23:09:23 +02:00
2012-05-15 08:31:37 +02:00
2012-10-23 15:23:26 -05:00
2012-10-15 11:54:10 -07:00