From 9e329c79976aca9ee4c86c8003f041fa1366bea3 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Tue, 6 Jun 2017 15:40:31 -0700 Subject: [PATCH] net: tcp: Remove fin_queued flag from struct net_tcp This flag was set but never used. Signed-off-by: Leandro Pereira --- subsys/net/ip/net_context.c | 2 -- subsys/net/ip/tcp.h | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/subsys/net/ip/net_context.c b/subsys/net/ip/net_context.c index d1ba0c94b13..d402793d02e 100644 --- a/subsys/net/ip/net_context.c +++ b/subsys/net/ip/net_context.c @@ -360,8 +360,6 @@ static void queue_fin(struct net_context *ctx) return; } - ctx->tcp->fin_queued = 1; - ret = net_tcp_send_pkt(pkt); if (ret < 0) { net_pkt_unref(pkt); diff --git a/subsys/net/ip/tcp.h b/subsys/net/ip/tcp.h index c80602d1a01..2e6e5888653 100644 --- a/subsys/net/ip/tcp.h +++ b/subsys/net/ip/tcp.h @@ -128,8 +128,6 @@ struct net_tcp { u32_t flags : 8; /** Current TCP state */ u32_t state : 4; - /* A FIN packet has been queued for transmission */ - u32_t fin_queued : 1; /* An outbound FIN packet has been sent */ u32_t fin_sent : 1; /* An inbound FIN packet has been received */ @@ -140,7 +138,7 @@ struct net_tcp { */ u32_t ack_timer_cancelled : 1; /** Remaining bits in this u32_t */ - u32_t _padding : 11; + u32_t _padding : 12; /** Accept callback to be called when the connection has been * established.