Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tcp/ipv4: remove AF_INET_FAMILY

After commit 079096f103fa ("tcp/dccp: install syn_recv requests into ehash table")
the macro isn't used anymore. remove it.

Signed-off-by: Alex Shi <alex.shi@linux.alibaba.com>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Cc: netdev@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Alex Shi and committed by
David S. Miller
aeaec7bc 339821f7

-6
-6
net/ipv4/inet_connection_sock.c
··· 610 610 } 611 611 EXPORT_SYMBOL_GPL(inet_csk_route_child_sock); 612 612 613 - #if IS_ENABLED(CONFIG_IPV6) 614 - #define AF_INET_FAMILY(fam) ((fam) == AF_INET) 615 - #else 616 - #define AF_INET_FAMILY(fam) true 617 - #endif 618 - 619 613 /* Decide when to expire the request and when to resend SYN-ACK */ 620 614 static inline void syn_ack_recalc(struct request_sock *req, const int thresh, 621 615 const int max_retries,