diff options
Diffstat (limited to 'drivers/usb/gadget/f_subset.c')
-rw-r--r-- | drivers/usb/gadget/f_subset.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/usb/gadget/f_subset.c b/drivers/usb/gadget/f_subset.c index 21ab474aca07..4060c0bd9785 100644 --- a/drivers/usb/gadget/f_subset.c +++ b/drivers/usb/gadget/f_subset.c | |||
@@ -436,10 +436,7 @@ int geth_bind_config(struct usb_configuration *c, u8 ethaddr[ETH_ALEN]) | |||
436 | return -ENOMEM; | 436 | return -ENOMEM; |
437 | 437 | ||
438 | /* export host's Ethernet address in CDC format */ | 438 | /* export host's Ethernet address in CDC format */ |
439 | snprintf(geth->ethaddr, sizeof geth->ethaddr, | 439 | snprintf(geth->ethaddr, sizeof geth->ethaddr, "%pm", ethaddr); |
440 | "%02X%02X%02X%02X%02X%02X", | ||
441 | ethaddr[0], ethaddr[1], ethaddr[2], | ||
442 | ethaddr[3], ethaddr[4], ethaddr[5]); | ||
443 | geth_string_defs[1].s = geth->ethaddr; | 440 | geth_string_defs[1].s = geth->ethaddr; |
444 | 441 | ||
445 | geth->port.cdc_filter = DEFAULT_FILTER; | 442 | geth->port.cdc_filter = DEFAULT_FILTER; |