usb: gadget: fsl_qe_udc: Fix fall-through warning for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 14 Jul 2021 16:02:37 +0000 (11:02 -0500)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Wed, 14 Jul 2021 16:02:37 +0000 (11:02 -0500)
Fix the following fallthrough warning (powerpc-randconfig):

drivers/usb/gadget/udc/fsl_qe_udc.c:589:4: warning: unannotated fall-through between switch labels [-Wimplicit-fallthrough]

Reported-by: kernel test robot <lkp@intel.com>
Link: https://lore.kernel.org/lkml/60ef0750.I8J+C6KAtb0xVOAa%25lkp@intel.com/
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/usb/gadget/udc/fsl_qe_udc.c

index 8e85889336289dfa732808c0ce722a48efc5dd9e..15db7a3868fe4d0f7c18d6ab537a05851c51a0c7 100644 (file)
@@ -586,6 +586,7 @@ static int qe_ep_init(struct qe_udc *udc,
                        case USB_SPEED_FULL:
                                if (max <= 1023)
                                        break;
+                               fallthrough;
                        default:
                                goto en_done;
                        }