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>
This commit is contained in:
parent
8a30b30b26
commit
2fd450cd83
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user