tcp: simplify inetpeer_addr_base use
authorJiri Benc <jbenc@redhat.com>
Sun, 29 Mar 2015 14:59:23 +0000 (16:59 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 31 Mar 2015 17:58:35 +0000 (13:58 -0400)
commit8f55db48608b109ad8c7ff4b946ad39b3189a540
treeb7364235d94c0e15aa491858a4a574182292f5e1
parentf0ef31264cde8b489a0b87149ebc3a72cef4c58a
tcp: simplify inetpeer_addr_base use

In many places, the a6 field is typecasted to struct in6_addr. As the
fields are in union anyway, just add in6_addr type to the union and get rid
of the typecasting.

Signed-off-by: Jiri Benc <jbenc@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inetpeer.h
net/ipv4/tcp_metrics.c