diff options
author | xu xin <xu.xin16@zte.com.cn> | 2022-11-11 12:04:20 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-11-14 14:20:15 +0300 |
commit | 2fd450cd83e3c978a4902aceb4aac36fa341067c (patch) | |
tree | 94dd56323012b69b633a6436dfac0cad7aaae313 /net/ipv4/tcp_ipv4.c | |
parent | 8a30b30b26bcf1b098ab6f4149e5a3cf53d5c4d9 (diff) | |
download | linux-2fd450cd83e3c978a4902aceb4aac36fa341067c.tar.xz |
ipasdv4/tcp_ipv4: remove redundant assignment
The value of 'st->state' has been verified as "TCP_SEQ_STATE_LISTENING",
it's unnecessary to assign TCP_SEQ_STATE_LISTENING to it, so we can remove it.
Signed-off-by: xu xin <xu.xin16@zte.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp_ipv4.c')
-rw-r--r-- | net/ipv4/tcp_ipv4.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index ebab9e8b184c..f0343538d1f8 100644 --- a/net/ipv4/tcp_ipv4.c +++ b/net/ipv4/tcp_ipv4.c @@ -2480,7 +2480,6 @@ static void *tcp_seek_last_pos(struct seq_file *seq) case TCP_SEQ_STATE_LISTENING: if (st->bucket > hinfo->lhash2_mask) break; - st->state = TCP_SEQ_STATE_LISTENING; rc = listening_get_first(seq); while (offset-- && rc && bucket == st->bucket) rc = listening_get_next(seq, rc); |