summaryrefslogtreecommitdiff
path: root/net/x25
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2014-07-12 20:36:44 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-07-14 21:32:51 (GMT)
commit9ecf07a1d8f70f72ec99a0f102c8aa24609d84f4 (patch)
treeb1fc7364af39c287a118bd990ae2422db2a43d27 /net/x25
parent8f2e5ae40ec193bc0a0ed99e95315c3eebca84ea (diff)
downloadlinux-9ecf07a1d8f70f72ec99a0f102c8aa24609d84f4.tar.xz
neigh: sysctl - simplify address calculation of gc_* variables
The code in neigh_sysctl_register() relies on a specific layout of struct neigh_table, namely that the 'gc_*' variables are directly following the 'parms' member in a specific order. The code, though, expresses this in the most ugly way. Get rid of the ugly casts and use the 'tbl' pointer to get a handle to the table. This way we can refer to the 'gc_*' variables directly. Similarly seen in the grsecurity patch, written by Brad Spengler. Signed-off-by: Mathias Krause <minipli@googlemail.com> Cc: Brad Spengler <spender@grsecurity.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/x25')
0 files changed, 0 insertions, 0 deletions