usb: core: Move variable initialization to appropriate place
authorSuwan Kim <suwan.kim027@gmail.com>
Wed, 30 Jan 2019 14:48:28 +0000 (23:48 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Feb 2019 11:58:03 +0000 (12:58 +0100)
commit1760435d613c9ee536eaf40ffa97958c3e1973fe
treea96e865e8736eccc3dd101d7bd54a34822376abb
parenta2fd23b93733bf604870eb8a15ccaa74c9b23889
usb: core: Move variable initialization to appropriate place

It is better to initialize the variable 'cfgno' in the for loop than
at the current place.

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>
drivers/usb/core/config.c