]> git.dujemihanovic.xyz Git - u-boot.git/commit
sandbox: fix sandbox_hub_submit_control_msg()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 1 Apr 2023 06:57:33 +0000 (08:57 +0200)
committerSimon Glass <sjg@chromium.org>
Fri, 28 Apr 2023 17:30:17 +0000 (11:30 -0600)
commit42175a70d1e85bf0e7949b3e27633fac0aa8d4b1
tree3b37ce50cc97f97e31f2f289193a4119acdef9ba
parent159d6bf720a663b22f291dfbba337392a771d59a
sandbox: fix sandbox_hub_submit_control_msg()

Avoid incorrect fall through:
A USB_RT_HUB request should not be treated as USB_RT_PORT.

Simplify the coding:
Avoid duplicate debug() statements.

This fixes all -Wimplicit-fallthrough warnings.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/usb/emul/sandbox_hub.c