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

Simon Glass sjg at chromium.org
Sun Apr 2 04:38:38 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>


More information about the U-Boot mailing list