diff options
author | Krzysztof Mazur <krzysiek@podlesie.net> | 2013-08-22 16:49:40 +0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-08-23 21:47:17 +0400 |
commit | 3bbc47d8b07abad56780a8e214520259808c4f8b (patch) | |
tree | 6a7bf12ca876302c8ecf200c1ec1c9e476ebe3bf /drivers/usb/core/driver.c | |
parent | e58547eb9561a8a72d46e2d411090a614d33ac0e (diff) | |
download | linux-3bbc47d8b07abad56780a8e214520259808c4f8b.tar.xz |
usb: don't use bNbrPorts after initialization
After successful initialization hub->descriptor->bNbrPorts and
hub->hdev->maxchild are equal, but using hub->hdev->maxchild is
preferred because that value is explicitly used for initialization
of hub->ports[].
Signed-off-by: Krzysztof Mazur <krzysiek@podlesie.net>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/core/driver.c')
0 files changed, 0 insertions, 0 deletions