[PATCH 1/1] sandbox: fix sandbox_hub_submit_control_msg()

Simon Glass sjg at chromium.org
Sat Apr 22 18:51:36 CEST 2023


On Sat, 1 Apr 2023 at 19:57, Heinrich Schuchardt <
heinrich.schuchardt at canonical.com> wrote:
>
> 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 at canonical.com>
> ---
>  drivers/usb/emul/sandbox_hub.c | 30 +++++++++---------------------
>  1 file changed, 9 insertions(+), 21 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list