Merge tag 'rxrpc-fixes-20190730' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / net / rxrpc / sysctl.c
index 1e3fa67..2bbb381 100644 (file)
@@ -11,7 +11,6 @@
 #include "ar-internal.h"
 
 static struct ctl_table_header *rxrpc_sysctl_reg_table;
-static const unsigned int one = 1;
 static const unsigned int four = 4;
 static const unsigned int thirtytwo = 32;
 static const unsigned int n_65535 = 65535;
@@ -97,7 +96,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
                .maxlen         = sizeof(unsigned int),
                .mode           = 0644,
                .proc_handler   = proc_dointvec_minmax,
-               .extra1         = (void *)&one,
+               .extra1         = (void *)SYSCTL_ONE,
                .extra2         = (void *)&rxrpc_max_client_connections,
        },
        {
@@ -115,7 +114,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
                .maxlen         = sizeof(unsigned int),
                .mode           = 0644,
                .proc_handler   = proc_dointvec_minmax,
-               .extra1         = (void *)&one,
+               .extra1         = (void *)SYSCTL_ONE,
                .extra2         = (void *)&n_max_acks,
        },
        {
@@ -124,7 +123,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
                .maxlen         = sizeof(unsigned int),
                .mode           = 0644,
                .proc_handler   = proc_dointvec_minmax,
-               .extra1         = (void *)&one,
+               .extra1         = (void *)SYSCTL_ONE,
                .extra2         = (void *)&n_65535,
        },
        {
@@ -133,7 +132,7 @@ static struct ctl_table rxrpc_sysctl_table[] = {
                .maxlen         = sizeof(unsigned int),
                .mode           = 0644,
                .proc_handler   = proc_dointvec_minmax,
-               .extra1         = (void *)&one,
+               .extra1         = (void *)SYSCTL_ONE,
                .extra2         = (void *)&four,
        },