lkml.org 
[lkml]   [2020]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH -next 030/491] BROADCOM GENET ETHERNET DRIVER: Use fallthrough;
    Date
    Convert the various uses of fallthrough comments to fallthrough;

    Done via script
    Link: https://lore.kernel.org/lkml/b56602fcf79f849e733e7b521bb0e17895d390fa.1582230379.git.joe.com/

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/net/ethernet/broadcom/genet/bcmgenet.c | 4 ++--
    drivers/net/ethernet/broadcom/genet/bcmmii.c | 2 +-
    2 files changed, 3 insertions(+), 3 deletions(-)

    diff --git a/drivers/net/ethernet/broadcom/genet/bcmgenet.c b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
    index c2fda12..f8c15ec 100644
    --- a/drivers/net/ethernet/broadcom/genet/bcmgenet.c
    +++ b/drivers/net/ethernet/broadcom/genet/bcmgenet.c
    @@ -963,10 +963,10 @@ static void bcmgenet_update_mib_counters(struct bcmgenet_priv *priv)
    continue;
    case BCMGENET_STAT_RUNT:
    offset += BCMGENET_STAT_OFFSET;
    - /* fall through */
    + fallthrough;
    case BCMGENET_STAT_MIB_TX:
    offset += BCMGENET_STAT_OFFSET;
    - /* fall through */
    + fallthrough;
    case BCMGENET_STAT_MIB_RX:
    val = bcmgenet_umac_readl(priv,
    UMAC_MIB_START + j + offset);
    diff --git a/drivers/net/ethernet/broadcom/genet/bcmmii.c b/drivers/net/ethernet/broadcom/genet/bcmmii.c
    index d3003cb..b8e704f 100644
    --- a/drivers/net/ethernet/broadcom/genet/bcmmii.c
    +++ b/drivers/net/ethernet/broadcom/genet/bcmmii.c
    @@ -216,7 +216,7 @@ int bcmgenet_mii_config(struct net_device *dev, bool init)
    switch (priv->phy_interface) {
    case PHY_INTERFACE_MODE_INTERNAL:
    phy_name = "internal PHY";
    - /* fall through */
    + fallthrough;
    case PHY_INTERFACE_MODE_MOCA:
    /* Irrespective of the actually configured PHY speed (100 or
    * 1000) GENETv4 only has an internal GPHY so we will just end
    --
    2.24.0
    \
     
     \ /
      Last update: 2020-03-11 06:08    [W:2.359 / U:6.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site