OSDN Git Service

usb: hub: make wait_for_connected() take an int instead of a pointer to int
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 10 Dec 2021 14:20:28 +0000 (17:20 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Dec 2021 10:00:09 +0000 (11:00 +0100)
commitb8f1ba99cea540903154d34888d7d310cc54ea4f
treefad03ca9d16d6a685d14183cd2e20ae78d9d61ff
parentf59f93cd1d720809466c7fd5aa16a236156c672b
usb: hub: make wait_for_connected() take an int instead of a pointer to int

The wait_for_connected() function doesn't modify "*port1" and there is
no need to pass a pointer.  Just pass the int itself.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211210142028.GB18906@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c