usb: hub: fix a typo in hub_port_init() leading to wrong logic
authorOliver Neukum <oneukum@suse.com>
Wed, 17 Feb 2016 10:52:43 +0000 (11:52 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Apr 2016 16:08:40 +0000 (09:08 -0700)
commitaa563cf3bc7ef570f449501ff7ab12f3b7080ff0
tree1b840b79184f2aa686a6c55740648ab14e5a760b
parent951822beba268f76af9463c69095284df20311f6
usb: hub: fix a typo in hub_port_init() leading to wrong logic

commit 0d5ce778c43bf888328231bcdce05d5c860655aa upstream.

A typo of j for i led to a logic bug. To rule out future
confusion, the variable names are made meaningful.

Signed-off-by: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/hub.c