From: xu xin Date: Fri, 11 Nov 2022 09:04:20 +0000 (+0000) Subject: ipasdv4/tcp_ipv4: remove redundant assignment X-Git-Tag: v6.6.17~5932^2~220 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2fd450cd83e3c978a4902aceb4aac36fa341067c;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_ipv4.c b/net/ipv4/tcp_ipv4.c index ebab9e8..f034353 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);