Message ID | 20181210152323.18587-1-suwan.kim027@gmail.com (mailing list archive) |
---|---|
State | Mainlined |
Commit | c238ec3ef638f87d8d701600d13a185b011fa078 |
Headers | show |
Series | usb: core: hcd: Remove unnecessarily repeated memset() | expand |
diff --git a/drivers/usb/core/hcd.c b/drivers/usb/core/hcd.c index 487025d31d44..015b126ce455 100644 --- a/drivers/usb/core/hcd.c +++ b/drivers/usb/core/hcd.c @@ -1074,8 +1074,6 @@ static int register_root_hub(struct usb_hcd *hcd) usb_dev->devnum = devnum; usb_dev->bus->devnum_next = devnum + 1; - memset (&usb_dev->bus->devmap.devicemap, 0, - sizeof usb_dev->bus->devmap.devicemap); set_bit (devnum, usb_dev->bus->devmap.devicemap); usb_set_device_state(usb_dev, USB_STATE_ADDRESS);
The device map of struct usb_bus is already initialized in usb_bus_init() during host controller probe function. Signed-off-by: Suwan Kim <suwan.kim027@gmail.com> --- drivers/usb/core/hcd.c | 2 -- 1 file changed, 2 deletions(-)