mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2024-12-29 17:23:36 +00:00
udplite: remove UDPLITE_BIT
This flag is set but never read, we can remove it. Signed-off-by: Eric Dumazet <edumazet@google.com> Reviewed-by: Willem de Bruijn <willemb@google.com> Signed-off-by: Paolo Abeni <pabeni@redhat.com>
This commit is contained in:
parent
70a36f5713
commit
729549aa35
@ -55,9 +55,8 @@ struct udp_sock {
|
||||
__u8 encap_type; /* Is this an Encapsulation socket? */
|
||||
|
||||
/* indicator bits used by pcflag: */
|
||||
#define UDPLITE_BIT 0x1 /* set by udplite proto init function */
|
||||
#define UDPLITE_SEND_CC 0x2 /* set via udplite setsockopt */
|
||||
#define UDPLITE_RECV_CC 0x4 /* set via udplite setsocktopt */
|
||||
#define UDPLITE_SEND_CC 0x1 /* set via udplite setsockopt */
|
||||
#define UDPLITE_RECV_CC 0x2 /* set via udplite setsocktopt */
|
||||
__u8 pcflag; /* marks socket as UDP-Lite if > 0 */
|
||||
/*
|
||||
* Following member retains the information to create a UDP header
|
||||
|
@ -21,7 +21,6 @@ EXPORT_SYMBOL(udplite_table);
|
||||
static int udplite_sk_init(struct sock *sk)
|
||||
{
|
||||
udp_init_sock(sk);
|
||||
udp_sk(sk)->pcflag = UDPLITE_BIT;
|
||||
pr_warn_once("UDP-Lite is deprecated and scheduled to be removed in 2025, "
|
||||
"please contact the netdev mailing list\n");
|
||||
return 0;
|
||||
|
@ -17,7 +17,6 @@
|
||||
static int udplitev6_sk_init(struct sock *sk)
|
||||
{
|
||||
udpv6_init_sock(sk);
|
||||
udp_sk(sk)->pcflag = UDPLITE_BIT;
|
||||
pr_warn_once("UDP-Lite is deprecated and scheduled to be removed in 2025, "
|
||||
"please contact the netdev mailing list\n");
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user