ax.25: x.25: Remove the now superfluous sentinel elements from ctl_table array
[linux-2.6-block.git] / net / ax25 / sysctl_net_ax25.c
index e0128dc9def33237f15fd02cbccaf6e5126cc483..68753aa303341a542ec9f319ec4bc836aeb6aba5 100644 (file)
@@ -141,8 +141,6 @@ static const struct ctl_table ax25_param_table[] = {
                .extra2         = &max_ds_timeout
        },
 #endif
-
-       { }     /* that's all, folks! */
 };
 
 int ax25_register_dev_sysctl(ax25_dev *ax25_dev)
@@ -155,6 +153,7 @@ int ax25_register_dev_sysctl(ax25_dev *ax25_dev)
        if (!table)
                return -ENOMEM;
 
+       BUILD_BUG_ON(ARRAY_SIZE(ax25_param_table) != AX25_MAX_VALUES);
        for (k = 0; k < AX25_MAX_VALUES; k++)
                table[k].data = &ax25_dev->values[k];