diff options
| author | Andre Przywara <[email protected]> | 2025-03-27 15:32:58 +0000 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-04-08 16:23:51 -0600 |
| commit | 2938eb1e022d7e1de23d89f941bc07b0776a2549 (patch) | |
| tree | ec0278642358e3aad9a818cdfcb58f278af812f8 | |
| parent | 3d907a5a490b79b876a3f9c325b483a116f29b7e (diff) | |
gadget: f_thor: annotate switch/case fallthrough
Even though we seem to catch POWEROFF and EFSCLEAR commands in the THOR
protocol request handling, we ultimately do not seem to handle them
(apart from sending a response), so those commands still print an error
message.
Annotate the switch/case fallthrough in this case, to make this clear to
the compiler.
Signed-off-by: Andre Przywara <[email protected]>
Reviewed-by: Mattijs Korpershoek <[email protected]>
| -rw-r--r-- | drivers/usb/gadget/f_thor.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/f_thor.c b/drivers/usb/gadget/f_thor.c index 54372118348..540b9f88237 100644 --- a/drivers/usb/gadget/f_thor.c +++ b/drivers/usb/gadget/f_thor.c @@ -138,6 +138,7 @@ static int process_rqt_cmd(struct udevice *udc, const struct rqt_box *rqt) case RQT_CMD_POWEROFF: case RQT_CMD_EFSCLEAR: send_rsp(udc, rsp); + fallthrough; default: printf("Command not supported -> cmd: %d\n", rqt->rqt_data); return -EINVAL; |
