Skip to content

Commit

Permalink
sysctl: remove typedef ctl_table
Browse files Browse the repository at this point in the history
Remove the final user, and the typedef itself.

Signed-off-by: Joe Perches <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
JoePerches authored and torvalds committed Aug 8, 2014
1 parent 1b9c53e commit e5eea09
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion fs/proc/proc_sysctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,7 @@ static bool proc_sys_link_fill_cache(struct file *file,
return ret;
}

static int scan(struct ctl_table_header *head, ctl_table *table,
static int scan(struct ctl_table_header *head, struct ctl_table *table,
unsigned long *pos, struct file *file,
struct dir_context *ctx)
{
Expand Down
2 changes: 0 additions & 2 deletions include/linux/sysctl.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ struct ctl_table_root;
struct ctl_table_header;
struct ctl_dir;

typedef struct ctl_table ctl_table;

typedef int proc_handler (struct ctl_table *ctl, int write,
void __user *buffer, size_t *lenp, loff_t *ppos);

Expand Down

0 comments on commit e5eea09

Please sign in to comment.