inet_diag: Remove indirect sizeof from inet diag handlers
authorPavel Emelyanov <xemul@parallels.com>
Fri, 9 Dec 2011 06:21:16 +0000 (06:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 19:14:07 +0000 (14:14 -0500)
commit7b35eadd7eee2e0b42421ce3efbc30f1c3c745e5
tree068ff7b5ba08d957978a63fedad6c2d86af48ed2
parenta73ed26bbae7327370c5bd298f07de78df9e3466
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>
include/linux/inet_diag.h
net/dccp/diag.c
net/ipv4/inet_diag.c
net/ipv4/tcp_diag.c