]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb5978975db03d1035b19a4625d62ddb130942f28
treeb7364235d94c0e15aa491858a4a574182292f5e1
parent918085000a8379312719d1e3cefd2be21c5bb468
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