]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - net/irda/irnetlink.c
genetlink: only pass array to genl_register_family_with_ops()
[mirror_ubuntu-zesty-kernel.git] / net / irda / irnetlink.c
index bf5d7d476daefdb37f57e9354b795b0d875c7a23..a37b81fe04798e0c8cb0196f72b2cf97e4b610b7 100644 (file)
@@ -149,8 +149,7 @@ static const struct genl_ops irda_nl_ops[] = {
 
 int irda_nl_register(void)
 {
-       return genl_register_family_with_ops(&irda_nl_family,
-               irda_nl_ops, ARRAY_SIZE(irda_nl_ops));
+       return genl_register_family_with_ops(&irda_nl_family, irda_nl_ops);
 }
 
 void irda_nl_unregister(void)