aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/random.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 /drivers/char/random.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 'drivers/char/random.c')
-rw-r--r--drivers/char/random.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/char/random.c b/drivers/char/random.c
index bcf680f9ff58..dcd08635cf1b 100644
--- a/drivers/char/random.c
+++ b/drivers/char/random.c
@@ -1264,13 +1264,13 @@ ctl_table random_table[] = {
1264 .data = &sysctl_poolsize, 1264 .data = &sysctl_poolsize,
1265 .maxlen = sizeof(int), 1265 .maxlen = sizeof(int),
1266 .mode = 0444, 1266 .mode = 0444,
1267 .proc_handler = &proc_dointvec, 1267 .proc_handler = proc_dointvec,
1268 }, 1268 },
1269 { 1269 {
1270 .procname = "entropy_avail", 1270 .procname = "entropy_avail",
1271 .maxlen = sizeof(int), 1271 .maxlen = sizeof(int),
1272 .mode = 0444, 1272 .mode = 0444,
1273 .proc_handler = &proc_dointvec, 1273 .proc_handler = proc_dointvec,
1274 .data = &input_pool.entropy_count, 1274 .data = &input_pool.entropy_count,
1275 }, 1275 },
1276 { 1276 {
@@ -1278,7 +1278,7 @@ ctl_table random_table[] = {
1278 .data = &random_read_wakeup_thresh, 1278 .data = &random_read_wakeup_thresh,
1279 .maxlen = sizeof(int), 1279 .maxlen = sizeof(int),
1280 .mode = 0644, 1280 .mode = 0644,
1281 .proc_handler = &proc_dointvec_minmax, 1281 .proc_handler = proc_dointvec_minmax,
1282 .extra1 = &min_read_thresh, 1282 .extra1 = &min_read_thresh,
1283 .extra2 = &max_read_thresh, 1283 .extra2 = &max_read_thresh,
1284 }, 1284 },
@@ -1287,7 +1287,7 @@ ctl_table random_table[] = {
1287 .data = &random_write_wakeup_thresh, 1287 .data = &random_write_wakeup_thresh,
1288 .maxlen = sizeof(int), 1288 .maxlen = sizeof(int),
1289 .mode = 0644, 1289 .mode = 0644,
1290 .proc_handler = &proc_dointvec_minmax, 1290 .proc_handler = proc_dointvec_minmax,
1291 .extra1 = &min_write_thresh, 1291 .extra1 = &min_write_thresh,
1292 .extra2 = &max_write_thresh, 1292 .extra2 = &max_write_thresh,
1293 }, 1293 },
@@ -1296,13 +1296,13 @@ ctl_table random_table[] = {
1296 .data = &sysctl_bootid, 1296 .data = &sysctl_bootid,
1297 .maxlen = 16, 1297 .maxlen = 16,
1298 .mode = 0444, 1298 .mode = 0444,
1299 .proc_handler = &proc_do_uuid, 1299 .proc_handler = proc_do_uuid,
1300 }, 1300 },
1301 { 1301 {
1302 .procname = "uuid", 1302 .procname = "uuid",
1303 .maxlen = 16, 1303 .maxlen = 16,
1304 .mode = 0444, 1304 .mode = 0444,
1305 .proc_handler = &proc_do_uuid, 1305 .proc_handler = proc_do_uuid,
1306 }, 1306 },
1307 { } 1307 { }
1308}; 1308};