Skip to contentSkip to conversation

tcp/ipv4: remove AF_INET_FAMILY

PATCH Applied Alex Shi 2 participants 2 messages Jan 21, 2020

Subsystems (3)
lore
Share & tools
lore

Alex Shi

author
#0 lore raw

PATCH 1/1 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.

Cc "David S. Miller" <[email protected]>
Cc Alexey Kuznetsov <[email protected]>
Cc Hideaki YOSHIFUJI <[email protected]>
---
 net/ipv4/inet_connection_sock.c | 6 ------
 1 file changed, 6 deletions(-)
net/ipv4/inet_connection_sock.c +0 -6
index 18c0d5bffe12..ca22073cd500 100644
@@ -610,12 +610,6 @@ struct dst_entry *inet_csk_route_child_sock(const struct sock *sk,
 }
 EXPORT_SYMBOL_GPL(inet_csk_route_child_sock);
 
-#if IS_ENABLED(CONFIG_IPV6)
-#define AF_INET_FAMILY(fam) ((fam) == AF_INET)
-#else
-#define AF_INET_FAMILY(fam) true
-#endif
-
 /* Decide when to expire the request and when to resend SYN-ACK */
 static inline void syn_ack_recalc(struct request_sock *req, const int thresh,
 				  const int max_retries,
Signature · 1 line
1.8.3.1
maintainer Applied
#1 lore raw

From: Alex Shi <[email protected]>
Date: Tue, 21 Jan 2020 16:50:07 +0800

Quoted 4 lines

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

Applied to net-next