Skip to contentSkip to conversation

net: phy: marvell: don't use empty switch default case

PATCH Applied Marek Behún 2 participants 2 messages Apr 21, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: phy: marvell: don't use empty switch default case

This causes error reported by kernel test robot.

Fixes 41d26bf4aba0 ("net: phy: marvell: refactor HWMON OOP style")
---
 drivers/net/phy/marvell.c | 2 --
 1 file changed, 2 deletions(-)
drivers/net/phy/marvell.c +0 -2
index 1cce86b280af..e2b2b20c0dc5 100644
@@ -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;
Signature · 1 line
2.26.3
#1 lore raw
This patch was applied to netdev/net-next.git (refs/heads/master):

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

Quoted 8 lines · On Wed, 21 Apr 2021 16:08:03 +0200 you wrote:

This causes error reported by kernel test robot.

Fixes 41d26bf4aba0 ("net: phy: marvell: refactor HWMON OOP style")
---
 drivers/net/phy/marvell.c | 2 --
 1 file changed, 2 deletions(-)

Here is the summary with links:
- [net-next] net: phy: marvell: don't use empty switch default case

    https://git.kernel.org/netdev/net-next/c/5d869070569a

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html