]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - include/linux/genl_magic_func.h
genetlink: only pass array to genl_register_family_with_ops()
[mirror_ubuntu-artful-kernel.git] / include / linux / genl_magic_func.h
index 023bc346b877f08bd75be65edaba526af7314558..47086030ab315cd28a94f75d9fb1562d534b2b2b 100644 (file)
@@ -293,8 +293,7 @@ static int CONCAT_(GENL_MAGIC_FAMILY, _genl_multicast_ ## group)(   \
 
 int CONCAT_(GENL_MAGIC_FAMILY, _genl_register)(void)
 {
-       int err = genl_register_family_with_ops(&ZZZ_genl_family,
-               ZZZ_genl_ops, ARRAY_SIZE(ZZZ_genl_ops));
+       int err = genl_register_family_with_ops(&ZZZ_genl_family, ZZZ_genl_ops);
        if (err)
                return err;
 #undef GENL_mc_group