diff options
author | Pavel Emelyanov <xemul@parallels.com> | 2011-12-09 01:21:16 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-09 14:14:07 -0500 |
commit | 7b35eadd7eee2e0b42421ce3efbc30f1c3c745e5 (patch) | |
tree | 068ff7b5ba08d957978a63fedad6c2d86af48ed2 /net/dccp | |
parent | a73ed26bbae7327370c5bd298f07de78df9e3466 (diff) |
inet_diag: Remove indirect sizeof from inet diag handlers
There's an info_size value stored on inet_diag_handler, but for existing
code this value is effectively constant, so just use sizeof(struct tcp_info)
where required.
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r-- | net/dccp/diag.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/dccp/diag.c b/net/dccp/diag.c index 424dcd8415d7..9343f52db284 100644 --- a/net/dccp/diag.c +++ b/net/dccp/diag.c | |||
@@ -52,7 +52,6 @@ static const struct inet_diag_handler dccp_diag_handler = { | |||
52 | .idiag_hashinfo = &dccp_hashinfo, | 52 | .idiag_hashinfo = &dccp_hashinfo, |
53 | .idiag_get_info = dccp_diag_get_info, | 53 | .idiag_get_info = dccp_diag_get_info, |
54 | .idiag_type = IPPROTO_DCCP, | 54 | .idiag_type = IPPROTO_DCCP, |
55 | .idiag_info_size = sizeof(struct tcp_info), | ||
56 | }; | 55 | }; |
57 | 56 | ||
58 | static int __init dccp_diag_init(void) | 57 | static int __init dccp_diag_init(void) |