diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-04-01 08:24:52 +0200 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2023-04-28 11:30:17 -0600 |
commit | 159d6bf720a663b22f291dfbba337392a771d59a (patch) | |
tree | a2741176616e8f96dba69627437409bed1d3454c /drivers | |
parent | c9c2c95d4cd27fe0cd41fe13a863899d268f973c (diff) | |
download | u-boot-159d6bf720a663b22f291dfbba337392a771d59a.zip u-boot-159d6bf720a663b22f291dfbba337392a771d59a.tar.gz u-boot-159d6bf720a663b22f291dfbba337392a771d59a.tar.bz2 |
sandbox: fix fall through in sandbox_flash_bulk()
Handling of SANDBOX_FLASH_EP_OUT should never fall through to
SANDBOX_FLASH_EP_IN.
This addresses a warning shown when compiling with
-Wimplicit-fallthrough.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/emul/sandbox_flash.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/emul/sandbox_flash.c b/drivers/usb/emul/sandbox_flash.c index 01ccc4b..7c5c1ab 100644 --- a/drivers/usb/emul/sandbox_flash.c +++ b/drivers/usb/emul/sandbox_flash.c @@ -266,6 +266,7 @@ static int sandbox_flash_bulk(struct udevice *dev, struct usb_device *udev, default: break; } + break; case SANDBOX_FLASH_EP_IN: switch (info->phase) { case SCSIPH_DATA: |