]> git.sur5r.net Git - u-boot/commit
usb: Correct use of debug()
authorSimon Glass <sjg@chromium.org>
Mon, 4 Dec 2017 20:48:22 +0000 (13:48 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 7 Dec 2017 20:17:00 +0000 (15:17 -0500)
commit0ad0458c76107b29325b8c38804e0407bed42a79
tree14e947ae0b0104f05663841916e19f72a546dde0
parent95b41b80d77b8418dac3393784b2a9cbb7abef64
usb: Correct use of debug()

With clang this gives a warning because hubsts appears to be used before
it is set, even if ultimately it is not used. Simplify the code to avoid
this problem.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/usb_hub.c