diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-07-07 15:00:40 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-10 08:55:17 +0200 |
commit | 4e71e079432e3e0c8572a405f5cedf957d4d422c (patch) | |
tree | d844f9d70f66ee0b14d25cee83290fb967a118db /drivers/usb/phy/phy-mv-usb.c | |
parent | 2da3b53c78be8a11800a3d5053a8ca22b2455c8e (diff) | |
download | linux-stable-4e71e079432e3e0c8572a405f5cedf957d4d422c.tar.gz linux-stable-4e71e079432e3e0c8572a405f5cedf957d4d422c.tar.bz2 linux-stable-4e71e079432e3e0c8572a405f5cedf957d4d422c.zip |
usb: phy: 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/20200707200040.GA4525@embeddedor
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/phy/phy-mv-usb.c')
-rw-r--r-- | drivers/usb/phy/phy-mv-usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/phy/phy-mv-usb.c b/drivers/usb/phy/phy-mv-usb.c index 06b47f1028b3..ce767ecc0636 100644 --- a/drivers/usb/phy/phy-mv-usb.c +++ b/drivers/usb/phy/phy-mv-usb.c @@ -334,7 +334,7 @@ static void mv_otg_update_state(struct mv_otg *mvotg) switch (old_state) { case OTG_STATE_UNDEFINED: mvotg->phy.otg->state = OTG_STATE_B_IDLE; - /* FALL THROUGH */ + fallthrough; case OTG_STATE_B_IDLE: if (otg_ctrl->id == 0) mvotg->phy.otg->state = OTG_STATE_A_IDLE; |