aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtrdma/transport.c
diff options
context:
space:
mode:
authorEric W. Biederman <ebiederm@xmission.com>2009-11-16 06:11:48 -0500
committerEric W. Biederman <ebiederm@xmission.com>2009-11-18 11:37:40 -0500
commit6d4561110a3e9fa742aeec6717248a491dfb1878 (patch)
tree689e2abf19940416ce597ba56ed31026ff59bd21 /net/sunrpc/xprtrdma/transport.c
parent86926d0096279b9739ceeff40f68d3c33b9119a9 (diff)
sysctl: Drop & in front of every proc_handler.
For consistency drop & in front of every proc_handler. Explicity taking the address is unnecessary and it prevents optimizations like stubbing the proc_handlers to NULL. Cc: Alexey Dobriyan <adobriyan@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Joe Perches <joe@perches.com> Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/transport.c')
-rw-r--r--net/sunrpc/xprtrdma/transport.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/sunrpc/xprtrdma/transport.c b/net/sunrpc/xprtrdma/transport.c
index 476816062243..7018eef1dcdd 100644
--- a/net/sunrpc/xprtrdma/transport.c
+++ b/net/sunrpc/xprtrdma/transport.c
@@ -90,7 +90,7 @@ static ctl_table xr_tunables_table[] = {
90 .data = &xprt_rdma_slot_table_entries, 90 .data = &xprt_rdma_slot_table_entries,
91 .maxlen = sizeof(unsigned int), 91 .maxlen = sizeof(unsigned int),
92 .mode = 0644, 92 .mode = 0644,
93 .proc_handler = &proc_dointvec_minmax, 93 .proc_handler = proc_dointvec_minmax,
94 .extra1 = &min_slot_table_size, 94 .extra1 = &min_slot_table_size,
95 .extra2 = &max_slot_table_size 95 .extra2 = &max_slot_table_size
96 }, 96 },
@@ -99,21 +99,21 @@ static ctl_table xr_tunables_table[] = {
99 .data = &xprt_rdma_max_inline_read, 99 .data = &xprt_rdma_max_inline_read,
100 .maxlen = sizeof(unsigned int), 100 .maxlen = sizeof(unsigned int),
101 .mode = 0644, 101 .mode = 0644,
102 .proc_handler = &proc_dointvec, 102 .proc_handler = proc_dointvec,
103 }, 103 },
104 { 104 {
105 .procname = "rdma_max_inline_write", 105 .procname = "rdma_max_inline_write",
106 .data = &xprt_rdma_max_inline_write, 106 .data = &xprt_rdma_max_inline_write,
107 .maxlen = sizeof(unsigned int), 107 .maxlen = sizeof(unsigned int),
108 .mode = 0644, 108 .mode = 0644,
109 .proc_handler = &proc_dointvec, 109 .proc_handler = proc_dointvec,
110 }, 110 },
111 { 111 {
112 .procname = "rdma_inline_write_padding", 112 .procname = "rdma_inline_write_padding",
113 .data = &xprt_rdma_inline_write_padding, 113 .data = &xprt_rdma_inline_write_padding,
114 .maxlen = sizeof(unsigned int), 114 .maxlen = sizeof(unsigned int),
115 .mode = 0644, 115 .mode = 0644,
116 .proc_handler = &proc_dointvec_minmax, 116 .proc_handler = proc_dointvec_minmax,
117 .extra1 = &zero, 117 .extra1 = &zero,
118 .extra2 = &max_padding, 118 .extra2 = &max_padding,
119 }, 119 },
@@ -122,7 +122,7 @@ static ctl_table xr_tunables_table[] = {
122 .data = &xprt_rdma_memreg_strategy, 122 .data = &xprt_rdma_memreg_strategy,
123 .maxlen = sizeof(unsigned int), 123 .maxlen = sizeof(unsigned int),
124 .mode = 0644, 124 .mode = 0644,
125 .proc_handler = &proc_dointvec_minmax, 125 .proc_handler = proc_dointvec_minmax,
126 .extra1 = &min_memreg, 126 .extra1 = &min_memreg,
127 .extra2 = &max_memreg, 127 .extra2 = &max_memreg,
128 }, 128 },
@@ -131,7 +131,7 @@ static ctl_table xr_tunables_table[] = {
131 .data = &xprt_rdma_pad_optimize, 131 .data = &xprt_rdma_pad_optimize,
132 .maxlen = sizeof(unsigned int), 132 .maxlen = sizeof(unsigned int),
133 .mode = 0644, 133 .mode = 0644,
134 .proc_handler = &proc_dointvec, 134 .proc_handler = proc_dointvec,
135 }, 135 },
136 { }, 136 { },
137}; 137};