genetlink: only pass array to genl_register_family_with_ops()
[firefly-linux-kernel-4.4.55.git] / net / wimax / stack.c
index 47170c9495f14322e6c83ab504134e49e98b31dd..6328afe9031940bcdf6954f32b4615b50aea66d5 100644 (file)
@@ -597,8 +597,8 @@ int __init wimax_subsys_init(void)
 
        snprintf(wimax_gnl_family.name, sizeof(wimax_gnl_family.name),
                 "WiMAX");
-       result = genl_register_family_with_ops(&wimax_gnl_family, wimax_gnl_ops,
-                                              ARRAY_SIZE(wimax_gnl_ops));
+       result = genl_register_family_with_ops(&wimax_gnl_family,
+                                              wimax_gnl_ops);
        if (unlikely(result < 0)) {
                printk(KERN_ERR "cannot register generic netlink family: %d\n",
                       result);