diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-19 10:57:15 +0400 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2012-01-25 04:40:30 +0400 |
commit | e54012cede6749528899f66a72312522a179d427 (patch) | |
tree | 13fe8f0b968da3fcb349e2867d80dfd2e3f5ef9d /include/linux/sysctl.h | |
parent | 60a47a2e823cbe6b609346bffff61a00c0c76470 (diff) | |
download | linux-e54012cede6749528899f66a72312522a179d427.tar.xz |
sysctl: Move sysctl_check_dups into insert_header
Simplify the callers of insert_header by removing explicit calls to check
for duplicates and instead have insert_header do the work.
This makes the code slightly more maintainable by enabling changes to
data structures where the insertion of new entries without duplicate
suppression is not possible.
There is not always a convenient path string where insert_header
is called so modify sysctl_check_dups to use sysctl_print_dir
when printing the full path when a duplicate is discovered.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'include/linux/sysctl.h')
0 files changed, 0 insertions, 0 deletions