From: Eric W. Biederman Date: Wed, 14 Feb 2007 08:33:23 +0000 (-0800) Subject: [PATCH] sysctl: sunrpc: remove unnecessary insert_at_head flag X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e35280e517c28b991667a608990227503dd2a30;p=openwrt%2Fstaging%2Fblogic.git [PATCH] sysctl: sunrpc: remove unnecessary insert_at_head flag Because the sunrpc sysctls don't conflict with any other sysctls the setting the insert at head flag to register_sysctl has no semantic meaning. Signed-off-by: Eric W. Biederman Cc: Trond Myklebust Cc: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/net/sunrpc/sysctl.c b/net/sunrpc/sysctl.c index 47d8df2b5eb2..64ce7098f541 100644 --- a/net/sunrpc/sysctl.c +++ b/net/sunrpc/sysctl.c @@ -36,7 +36,7 @@ void rpc_register_sysctl(void) { if (!sunrpc_table_header) { - sunrpc_table_header = register_sysctl_table(sunrpc_table, 1); + sunrpc_table_header = register_sysctl_table(sunrpc_table, 0); #ifdef CONFIG_PROC_FS if (sunrpc_table[0].de) sunrpc_table[0].de->owner = THIS_MODULE; diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 95e03ad1c555..389b1180911a 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c @@ -1636,7 +1636,7 @@ int init_socket_xprt(void) { #ifdef RPC_DEBUG if (!sunrpc_table_header) { - sunrpc_table_header = register_sysctl_table(sunrpc_table, 1); + sunrpc_table_header = register_sysctl_table(sunrpc_table, 0); #ifdef CONFIG_PROC_FS if (sunrpc_table[0].de) sunrpc_table[0].de->owner = THIS_MODULE;