summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorSuwan Kim <suwan.kim027@gmail.com>2018-12-04 23:31:43 +0900
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-12 12:38:41 +0100
commitc238ec3ef638f87d8d701600d13a185b011fa078 (patch)
tree39ef84c95616789624d7f08829b23b3047a68381 /mm
parent9e412c66a8a24fabad97b706132ee270db2e4c8e (diff)
downloadlinux-c238ec3ef638f87d8d701600d13a185b011fa078.tar.bz2
usb: core: Remove unnecessary memset()
register_root_hub() calls memset() setting usb_dev->bus->devmap. devicemap to 0 during hcd probe function (usb_hcd_pci_probe). But in previous function which is also the procedure of usb_hcd_pci_probe(), usb_bus_init() already initialized bus->devmap calling memset(). Furthermore, register_root_hub() is called only once in kernel. So, calling memset() which resets usb_bus->devmap.devicemap in register_root_hub() is redundant. Signed-off-by: Suwan Kim <suwan.kim027@gmail.com> Acked-by: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions