summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2021-06-09 12:54:31 +0300
committerDavid S. Miller <davem@davemloft.net>2021-06-09 14:12:30 -0700
commit711d1dee1c86294b43e33202fb1eabd7e524ed9a (patch)
treee08311198ea40b896096fe877ae695cf14535a20 /net/core
parent3d0167f2a627528032821cdeb78b4eab0510460f (diff)
downloadlinux-711d1dee1c86294b43e33202fb1eabd7e524ed9a.tar.bz2
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 <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/devlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 5260bdfb2403..3bdb7eac730a 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -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;
}