Skip to content
Snippets Groups Projects
Commit 57a87a25 authored by Tom Rini's avatar Tom Rini
Browse files

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: default avatarTom Rini <trini@ti.com>
Acked-by: default avatarJoe Hershberger <joe.hershberger@ni.com>
parent ac63f2a2
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment