devlink: Fix error message in devlink_rate_set_ops_supported()
Subsystems (3)
PATCH 1/1 devlink: Fix error message in devlink_rate_set_ops_supported()
The WARN_ON() macro takes a condition, it doesn't take a message. Use WARN() instead.
Fixes 1897db2ec310 ("devlink: Allow setting tx rate for devlink rate leaf objects")
Signed-off-by Dan Carpenter <[email protected]>
--- net/core/devlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/devlink.c +1 -1
@@ -1732,7 +1732,7 @@ static bool devlink_rate_set_ops_supported(const struct devlink_ops *ops,return false; } }else { -WARN_ON ("Unknown type of rate object" ); +WARN (1 ,"Unknown type of rate object" );return false; }
Signature · 1 line
2.30.2
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, 9 Jun 2021 12:54:31 +0300 you wrote:
The
WARN_ON()macro takes a condition, it doesn't take a message. UseWARN()instead.Fixes 1897db2ec310 ("devlink: Allow setting tx rate for devlink rate leaf objects")Signed-off-by Dan Carpenter <[email protected]>--- net/core/devlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [net-next] devlink: Fix error message in devlink_rate_set_ops_supported()
https://git.kernel.org/netdev/net-next/c/711d1dee1c86
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html