ipasdv4/tcp_ipv4: remove redundant assignment
authorxu xin <xu.xin16@zte.com.cn>
Fri, 11 Nov 2022 09:04:20 +0000 (09:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2022 11:20:15 +0000 (11:20 +0000)
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>
net/ipv4/tcp_ipv4.c

index ebab9e8..f034353 100644 (file)
@@ -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);