]> git.ipfire.org Git - thirdparty/ipxe.git/commit
[usb] Avoid unnecessary calls to usb_hub_set_drvdata()
authorMichael Brown <mcb30@ipxe.org>
Fri, 3 Jul 2020 10:29:25 +0000 (11:29 +0100)
committerMichael Brown <mcb30@ipxe.org>
Fri, 3 Jul 2020 11:10:04 +0000 (12:10 +0100)
commite87760183df0d7e07533e3361041620617389429
tree1cbae95231bb5067cfe40e148e46582c92fe798a
parent18d4be8aafe9ea468daed907aca3fd730e8c0d2e
[usb] Avoid unnecessary calls to usb_hub_set_drvdata()

The driver-private data for root hubs is already set immediately after
allocating the USB bus.  There seems to be no reason to set it again
when opening the root hub.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/usb/ehci.c
src/drivers/usb/uhci.c
src/drivers/usb/xhci.c