diff options
-rw-r--r-- | kernel/sysctl.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 1c5697e3521e..c86445a62af2 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -1931,9 +1931,6 @@ int proc_dointvec(ctl_table *table, int write, struct file *filp, | |||
1931 | 1931 | ||
1932 | #define OP_SET 0 | 1932 | #define OP_SET 0 |
1933 | #define OP_AND 1 | 1933 | #define OP_AND 1 |
1934 | #define OP_OR 2 | ||
1935 | #define OP_MAX 3 | ||
1936 | #define OP_MIN 4 | ||
1937 | 1934 | ||
1938 | static int do_proc_dointvec_bset_conv(int *negp, unsigned long *lvalp, | 1935 | static int do_proc_dointvec_bset_conv(int *negp, unsigned long *lvalp, |
1939 | int *valp, | 1936 | int *valp, |
@@ -1945,13 +1942,6 @@ static int do_proc_dointvec_bset_conv(int *negp, unsigned long *lvalp, | |||
1945 | switch(op) { | 1942 | switch(op) { |
1946 | case OP_SET: *valp = val; break; | 1943 | case OP_SET: *valp = val; break; |
1947 | case OP_AND: *valp &= val; break; | 1944 | case OP_AND: *valp &= val; break; |
1948 | case OP_OR: *valp |= val; break; | ||
1949 | case OP_MAX: if(*valp < val) | ||
1950 | *valp = val; | ||
1951 | break; | ||
1952 | case OP_MIN: if(*valp > val) | ||
1953 | *valp = val; | ||
1954 | break; | ||
1955 | } | 1945 | } |
1956 | } else { | 1946 | } else { |
1957 | int val = *valp; | 1947 | int val = *valp; |