diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-07-07 19:15:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-10 08:55:18 +0200 |
commit | a74005ab91856276ca5e424a239ebe73347079d8 (patch) | |
tree | 380c55863a28f9856f67371dea48a6b519291cfe /drivers/usb/gadget/function/f_tcm.c | |
parent | usb: host: Use fallthrough pseudo-keyword (diff) | |
download | linux-a74005ab91856276ca5e424a239ebe73347079d8.tar.xz linux-a74005ab91856276ca5e424a239ebe73347079d8.zip |
usb: gadget: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1]. Also, remove unnecessary
fall-through markings when it is the case.
[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Link: https://lore.kernel.org/r/20200707171500.GA13620@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/gadget/function/f_tcm.c')
-rw-r--r-- | drivers/usb/gadget/function/f_tcm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/gadget/function/f_tcm.c b/drivers/usb/gadget/function/f_tcm.c index eaf556ceac32..d94b814328c8 100644 --- a/drivers/usb/gadget/function/f_tcm.c +++ b/drivers/usb/gadget/function/f_tcm.c @@ -1150,7 +1150,7 @@ static int usbg_submit_command(struct f_uas *fu, default: pr_debug_once("Unsupported prio_attr: %02x.\n", cmd_iu->prio_attr); - /* fall through */ + fallthrough; case UAS_SIMPLE_TAG: cmd->prio_attr = TCM_SIMPLE_TAG; break; |