summaryrefslogtreecommitdiff
path: root/net/core/netdev-genl-gen.c
diff options
context:
space:
mode:
authorJakub Kicinski <kuba@kernel.org>2023-03-21 07:41:59 +0300
committerJakub Kicinski <kuba@kernel.org>2023-03-22 07:45:31 +0300
commit56c874f7dbcab2ab5cf8055d46a2ef36dec3d664 (patch)
treeebd75ecb6b16964eec2d8c7254b81e534ca28e8b /net/core/netdev-genl-gen.c
parent85496c9b3bf8dbe15e2433d3a0197954d323cadc (diff)
downloadlinux-56c874f7dbcab2ab5cf8055d46a2ef36dec3d664.tar.xz
tools: ynl: skip the explicit op array size when not needed
Jiri suggests it reads more naturally to skip the explicit array size when possible. When we export the symbol we want to make sure that the size is right but for statics its not needed. Link: https://lore.kernel.org/r/20230321044159.1031040-1-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/core/netdev-genl-gen.c')
-rw-r--r--net/core/netdev-genl-gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/netdev-genl-gen.c b/net/core/netdev-genl-gen.c
index 3abab70d66dd..de17ca2f7dbf 100644
--- a/net/core/netdev-genl-gen.c
+++ b/net/core/netdev-genl-gen.c
@@ -16,7 +16,7 @@ static const struct nla_policy netdev_dev_get_nl_policy[NETDEV_A_DEV_IFINDEX + 1
};
/* Ops table for netdev */
-static const struct genl_split_ops netdev_nl_ops[2] = {
+static const struct genl_split_ops netdev_nl_ops[] = {
{
.cmd = NETDEV_CMD_DEV_GET,
.doit = netdev_nl_dev_get_doit,