diff options
Diffstat (limited to 'net/ipv4/tcp_metrics.c')
-rw-r--r-- | net/ipv4/tcp_metrics.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/net/ipv4/tcp_metrics.c b/net/ipv4/tcp_metrics.c index 4ef4dd4bf38c..c8cbc2b4b792 100644 --- a/net/ipv4/tcp_metrics.c +++ b/net/ipv4/tcp_metrics.c | |||
@@ -81,11 +81,7 @@ static void tcp_metric_set(struct tcp_metrics_block *tm, | |||
81 | static bool addr_same(const struct inetpeer_addr *a, | 81 | static bool addr_same(const struct inetpeer_addr *a, |
82 | const struct inetpeer_addr *b) | 82 | const struct inetpeer_addr *b) |
83 | { | 83 | { |
84 | if (a->family != b->family) | 84 | return inetpeer_addr_cmp(a, b) == 0; |
85 | return false; | ||
86 | if (a->family == AF_INET) | ||
87 | return a->addr.a4 == b->addr.a4; | ||
88 | return ipv6_addr_equal(&a->addr.in6, &b->addr.in6); | ||
89 | } | 85 | } |
90 | 86 | ||
91 | struct tcpm_hash_bucket { | 87 | struct tcpm_hash_bucket { |