diff options
Diffstat (limited to 'net/sctp/sysctl.c')
-rw-r--r-- | net/sctp/sysctl.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c index da4f15734fb1..5eb6ea829b54 100644 --- a/net/sctp/sysctl.c +++ b/net/sctp/sysctl.c | |||
@@ -275,24 +275,10 @@ static ctl_table sctp_table[] = { | |||
275 | { .ctl_name = 0 } | 275 | { .ctl_name = 0 } |
276 | }; | 276 | }; |
277 | 277 | ||
278 | static ctl_table sctp_net_table[] = { | 278 | static struct ctl_path sctp_path[] = { |
279 | { | 279 | { .procname = "net", .ctl_name = CTL_NET, }, |
280 | .ctl_name = NET_SCTP, | 280 | { .procname = "sctp", .ctl_name = NET_SCTP, }, |
281 | .procname = "sctp", | 281 | { } |
282 | .mode = 0555, | ||
283 | .child = sctp_table | ||
284 | }, | ||
285 | { .ctl_name = 0 } | ||
286 | }; | ||
287 | |||
288 | static ctl_table sctp_root_table[] = { | ||
289 | { | ||
290 | .ctl_name = CTL_NET, | ||
291 | .procname = "net", | ||
292 | .mode = 0555, | ||
293 | .child = sctp_net_table | ||
294 | }, | ||
295 | { .ctl_name = 0 } | ||
296 | }; | 282 | }; |
297 | 283 | ||
298 | static struct ctl_table_header * sctp_sysctl_header; | 284 | static struct ctl_table_header * sctp_sysctl_header; |
@@ -300,7 +286,7 @@ static struct ctl_table_header * sctp_sysctl_header; | |||
300 | /* Sysctl registration. */ | 286 | /* Sysctl registration. */ |
301 | void sctp_sysctl_register(void) | 287 | void sctp_sysctl_register(void) |
302 | { | 288 | { |
303 | sctp_sysctl_header = register_sysctl_table(sctp_root_table); | 289 | sctp_sysctl_header = register_sysctl_paths(sctp_path, sctp_table); |
304 | } | 290 | } |
305 | 291 | ||
306 | /* Sysctl deregistration. */ | 292 | /* Sysctl deregistration. */ |