Skip to content

Commit

Permalink
sysctl: Remove the unused frv sysctl unumbers
Browse files Browse the repository at this point in the history
The frv sysctl tables can only be used from proc so kill
the sysctl numbers.

Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
  • Loading branch information
Eric W. Biederman committed Nov 12, 2009
1 parent 757010f commit 961303c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion arch/frv/kernel/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ static int cm_sysctl(ctl_table *table,
static struct ctl_table pm_table[] =
{
{
.ctl_name = CTL_PM_SUSPEND,
.ctl_name = CTL_UNNUMBERED,
.procname = "suspend",
.data = NULL,
.maxlen = 0,
Expand Down
6 changes: 3 additions & 3 deletions arch/frv/kernel/sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ static int procctl_frv_pin_cxnr(ctl_table *table, int write, struct file *filp,
static struct ctl_table frv_table[] =
{
{
.ctl_name = 1,
.ctl_name = CTL_UNNUMBERD,
.procname = "cache-mode",
.data = NULL,
.maxlen = 0,
Expand All @@ -185,7 +185,7 @@ static struct ctl_table frv_table[] =
},
#ifdef CONFIG_MMU
{
.ctl_name = 2,
.ctl_name = CTL_UNNUMBERD,
.procname = "pin-cxnr",
.data = NULL,
.maxlen = 0,
Expand All @@ -203,7 +203,7 @@ static struct ctl_table frv_table[] =
static struct ctl_table frv_dir_table[] =
{
{
.ctl_name = CTL_FRV,
.ctl_name = CTL_UNNUMBERED,
.procname = "frv",
.mode = 0555,
.child = frv_table
Expand Down

0 comments on commit 961303c

Please sign in to comment.