]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: phy: marvell: don't use empty switch default case
authorMarek Behún <kabel@kernel.org>
Wed, 21 Apr 2021 14:08:03 +0000 (16:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 21 Apr 2021 21:45:49 +0000 (14:45 -0700)
This causes error reported by kernel test robot.

Signed-off-by: Marek Behún <kabel@kernel.org>
Fixes: 41d26bf4aba0 ("net: phy: marvell: refactor HWMON OOP style")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/marvell.c

index 1cce86b280afe5793a1fb35bf654aff02de566f6..e2b2b20c0dc57c414494d9bb638d89a50a1084b4 100644 (file)
@@ -2499,8 +2499,6 @@ static int marvell_hwmon_write(struct device *dev, enum hwmon_sensor_types type,
                if (ops->set_temp_critical)
                        err = ops->set_temp_critical(phydev, temp);
                break;
-       default:
-               fallthrough;
        }
 
        return err;